diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2017-08-21 12:00:18 +0300 |
---|---|---|
committer | Hendrik Leppkes <h.leppkes@gmail.com> | 2017-08-21 12:00:18 +0300 |
commit | 76dd7fb2513453d3a190f2cbd12df2f9ba980d0a (patch) | |
tree | 57673d9f36a83ef9cc6bb8fcc3e1f44f89d334a3 | |
parent | a3ee66c703a4188285d086d2062ebe0cc7321392 (diff) |
Extend check for bad interlaced fps from containers to mp4
-rw-r--r-- | demuxer/Demuxers/LAVFVideoHelper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/demuxer/Demuxers/LAVFVideoHelper.cpp b/demuxer/Demuxers/LAVFVideoHelper.cpp index 8180521e..fe522656 100644 --- a/demuxer/Demuxers/LAVFVideoHelper.cpp +++ b/demuxer/Demuxers/LAVFVideoHelper.cpp @@ -184,7 +184,7 @@ VIDEOINFOHEADER *CLAVFVideoHelper::CreateVIH(const AVStream* avstream, ULONG *si else pvi->AvgTimePerFrame = r_avg; - if (container == "matroska" && r_avg && tb_avg && (avstream->codecpar->codec_id == AV_CODEC_ID_H264 || avstream->codecpar->codec_id == AV_CODEC_ID_MPEG2VIDEO)) { + if ((container == "matroska" || container == "mp4") && r_avg && tb_avg && (avstream->codecpar->codec_id == AV_CODEC_ID_H264 || avstream->codecpar->codec_id == AV_CODEC_ID_MPEG2VIDEO)) { float factor = (float)r_avg / (float)tb_avg; if ((factor > 0.4 && factor < 0.6) || (factor > 1.9 && factor < 2.1)) { pvi->AvgTimePerFrame = tb_avg; |