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

Commit 6cfe5c59 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "MediaCodec: Propograte framerate to MPEG4 muxer."

parents fe066a71 46de4162
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -3781,6 +3781,8 @@ status_t ACodec::setupVideoEncoder(
    } else {
        mFps = (double)framerate;
    }
    // propagate framerate to the output so that the muxer has it
    outputFormat->setInt32("frame-rate", (int32_t)mFps);

    video_def->xFramerate = (OMX_U32)(mFps * 65536);
    video_def->eCompressionFormat = OMX_VIDEO_CodingUnused;