2011/3/28 Måns Rullgård <[email protected]>: > Anton Khirnov <[email protected]> writes: > >> From: Anssi Hannula <[email protected]> >> >> As per issue2629, most 23.976fps matroska H.264 files are incorrectly >> detected as 24fps, as the matroska timestamps usually have only >> millisecond precision. >> >> Fix that by doubling the amount of timestamps inspected for frame rate >> for streams that have coarse time base. This also fixes 29.970 detection >> in matroska. >> --- >> libavformat/utils.c | 10 +++++++++- >> 1 files changed, 9 insertions(+), 1 deletions(-) > > The proper solution is to not throw out the frame rate specified in the > mkv header, which is usually correct even if actual timestamps are > inaccurate.
Well, it's the same value but with a different timebase. DefaultDuration is fine, but also optional, so correctness without it is good. Note that MKV files are likely VFR anyway. _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
