diff options
Diffstat (limited to 'media/libstagefright/MediaCodecSource.cpp')
-rw-r--r-- | media/libstagefright/MediaCodecSource.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/media/libstagefright/MediaCodecSource.cpp b/media/libstagefright/MediaCodecSource.cpp index aef6715..adbde54 100644 --- a/media/libstagefright/MediaCodecSource.cpp +++ b/media/libstagefright/MediaCodecSource.cpp @@ -429,9 +429,14 @@ status_t MediaCodecSource::initEncoder() { return err; } + int32_t hfrRatio = 0; + mOutputFormat->findInt32("hfr-ratio", &hfrRatio); + mEncoder->getOutputFormat(&mOutputFormat); convertMessageToMetaData(mOutputFormat, mMeta); + AVUtils::get()->HFRUtils().setHFRRatio(mMeta, hfrRatio); + if (mFlags & FLAG_USE_SURFACE_INPUT) { CHECK(mIsVideo); |