Loading media/libmediaplayerservice/StagefrightRecorder.cpp +4 −1 Original line number Diff line number Diff line Loading @@ -1457,7 +1457,10 @@ status_t StagefrightRecorder::setupVideoEncoder( CHECK(meta->findInt32(kKeySliceHeight, &sliceHeight)); CHECK(meta->findInt32(kKeyColorFormat, &colorFormat)); #ifdef QCOM_HARDWARE CHECK(meta->findInt32(kKeyHFR, &hfr)); hfr = 0; if (!meta->findInt32(kKeyHFR, &hfr)) { LOGW("hfr not found, default to 0"); } if(hfr) { mMaxFileDurationUs = mMaxFileDurationUs * (hfr/mFrameRate); Loading media/libstagefright/MPEG4Writer.cpp +3 −1 Original line number Diff line number Diff line Loading @@ -1962,7 +1962,9 @@ status_t MPEG4Writer::Track::threadEntry() { bool success = mMeta->findInt32(kKeySampleRate, &frameRate); CHECK(success); success = mMeta->findInt32(kKeyHFR, &hfr); CHECK(success); if (!success) { hfr = 0; } multiple = hfr?(hfr/frameRate):1; timestampUs = multiple * timestampUs; } Loading Loading
media/libmediaplayerservice/StagefrightRecorder.cpp +4 −1 Original line number Diff line number Diff line Loading @@ -1457,7 +1457,10 @@ status_t StagefrightRecorder::setupVideoEncoder( CHECK(meta->findInt32(kKeySliceHeight, &sliceHeight)); CHECK(meta->findInt32(kKeyColorFormat, &colorFormat)); #ifdef QCOM_HARDWARE CHECK(meta->findInt32(kKeyHFR, &hfr)); hfr = 0; if (!meta->findInt32(kKeyHFR, &hfr)) { LOGW("hfr not found, default to 0"); } if(hfr) { mMaxFileDurationUs = mMaxFileDurationUs * (hfr/mFrameRate); Loading
media/libstagefright/MPEG4Writer.cpp +3 −1 Original line number Diff line number Diff line Loading @@ -1962,7 +1962,9 @@ status_t MPEG4Writer::Track::threadEntry() { bool success = mMeta->findInt32(kKeySampleRate, &frameRate); CHECK(success); success = mMeta->findInt32(kKeyHFR, &hfr); CHECK(success); if (!success) { hfr = 0; } multiple = hfr?(hfr/frameRate):1; timestampUs = multiple * timestampUs; } Loading