Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aa31516e authored by Andrew Lewis's avatar Andrew Lewis Committed by Cherrypicker Worker
Browse files

Revert^2 "StagefrightRecoder: Disabling B-frame support"

This reverts commit fea6b6fb.

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
24D1-dev is based on 24Q2-release. Therefore, we merged this CL to 24D1-dev.
parent 1a241bc5
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -2119,6 +2119,11 @@ status_t StagefrightRecorder::setupVideoEncoder(

    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));