commit | 45e0897dff59314a753b01b43aa8c1c68b327132 | [log] [tgz] |
---|---|---|
author | Andrew Lewis <andrewlewis@google.com> | Thu May 30 15:53:06 2024 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Jun 13 05:18:57 2024 +0000 |
tree | 121f5881caa1553bea26b455bb743a08f640ec3a | |
parent | 33f1ad6930497dcb0a2bb5e256e390fdd89785ec [diff] |
Revert^2 "StagefrightRecoder: Disabling B-frame support" This reverts commit fea6b6fbf57769691d4c6f4333194b2c1602cc91. Reason for revert: To start another ABTD run to find out if the build failure is reproducible. (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:61ed373ba34ddad4f7bbb3469981ca0a59ed78a8) Merged-In: I6b722876328a71aa5b3c49b53e487a3af966f998 Change-Id: I6b722876328a71aa5b3c49b53e487a3af966f998
diff --git a/media/libmediaplayerservice/StagefrightRecorder.cpp b/media/libmediaplayerservice/StagefrightRecorder.cpp index 3ab32f0..f0e1b9e 100644 --- a/media/libmediaplayerservice/StagefrightRecorder.cpp +++ b/media/libmediaplayerservice/StagefrightRecorder.cpp
@@ -2119,6 +2119,11 @@ if (tsLayers > 1) { uint32_t bLayers = std::min(2u, tsLayers - 1); // use up-to 2 B-layers + // TODO(b/341121900): Remove this once B frames are handled correctly in screen recorder + // use case in case of mic only + if (mAudioSource == AUDIO_SOURCE_MIC && mVideoSource == VIDEO_SOURCE_SURFACE) { + bLayers = 0; + } uint32_t pLayers = tsLayers - bLayers; format->setString( "ts-schema", AStringPrintf("android.generic.%u+%u", pLayers, bLayers));