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

Commit fea6b6fb authored by ELIYAZ MOMIN's avatar ELIYAZ MOMIN Committed by Android (Google) Code Review
Browse files

Revert "StagefrightRecoder: Disabling B-frame support"

This reverts commit af685c66.

Reason for revert: <Potential culprit for b/343677988  - verifying through ABTD before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted.>

Change-Id: Ie48d7116386867bc326028319748609823019834
parent af685c66
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -2119,11 +2119,6 @@ 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));