diff --git a/src/main.cpp b/src/main.cpp index 12657fb53..c5872d20a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -890,12 +890,18 @@ class ATTRIBUTE_HIDDEN HEVCCodecHandler : public CodecHandler AP4_DYNAMIC_CAST(AP4_HevcSampleDescription, sample_description)) { bool ret = false; - if (hevc->GetConstantFrameRate() && hevc->GetAverageFrameRate()) + if (hevc->GetAverageFrameRate()) { info.SetFpsRate(hevc->GetAverageFrameRate()); info.SetFpsScale(256); ret = true; } + else if (hevc->GetConstantFrameRate()) + { + info.SetFpsRate(hevc->GetConstantFrameRate()); + info.SetFpsScale(256); + ret = true; + } return ret; } }