Skip to content
Snippets Groups Projects
Commit 7c152a45 authored by Anssi Hannula's avatar Anssi Hannula Committed by Reinhard Tartler
Browse files

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: default avatarMichael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 78431098)

Tested with mplayer based on this report
http://thread.gmane.org/gmane.comp.video.mplayer.user/66043/focus=66063



Signed-off-by: default avatarReinhard Tartler <siretart@tauware.de>
parent 0247bdee
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment