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

Commit bb6d61d7 authored by Wonsik Kim's avatar Wonsik Kim Committed by Android (Google) Code Review
Browse files

Merge "ACodec: don't enable B frames for AVC by default"

parents 4c2ca73b c548458d
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -4431,9 +4431,9 @@ status_t ACodec::setupAVCEncoderParameters(const sp<AMessage> &msg) {
        h264type.nRefFrames = 2;
        h264type.nBFrames = mLatency == 0 ? 1 : std::min(1U, mLatency - 1);

        // disable B-frames until MPEG4Writer can guarantee finalizing files with B-frames
        // h264type.nRefFrames = 1;
        // h264type.nBFrames = 0;
        // disable B-frames until we have explicit settings for enabling the feature.
        h264type.nRefFrames = 1;
        h264type.nBFrames = 0;

        h264type.nPFrames = setPFramesSpacing(iFrameInterval, frameRate, h264type.nBFrames);
        h264type.nAllowedPictureTypes =