« Previous | Next » 

Revision 7c152a45

Parent 0247bdee
Child 70892657

Added by Anssi Hannula about 10 years ago

lavf: inspect more frames for fps when container time base is coarse

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.

Signed-off-by: Michael Niedermayer <>
(cherry picked from commit 78431098f9e306ebe27e7698d0ae539e3df2afe9)

Tested with mplayer based on this report

Signed-off-by: Reinhard Tartler <>


  • added
  • modified
  • copied
  • renamed
  • deleted

View differences