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

Commit 46de4162 authored by Hangyu Kuang's avatar Hangyu Kuang
Browse files

MediaCodec: Propograte framerate to MPEG4 muxer.

Bug: 66480724
Test: Video Recording
Change-Id: I2779526e59ee47aee4d766c276c956cf5556fb55
parent ac8b6868
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;