From 66cf78e932956eaa7d5a9dab8766efbfc1431e55 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 23 May 2017 13:36:38 +0200 Subject: lavf: consider codec framerate for framerate detection Fixes detection of some TV sample as 24.5 FPS. With the patch applied, it's detected as 25 FPS. This is enabled for mpegts only. --- libavformat/internal.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libavformat/internal.h') diff --git a/libavformat/internal.h b/libavformat/internal.h index c856945ce9..d136c79bdd 100644 --- a/libavformat/internal.h +++ b/libavformat/internal.h @@ -145,6 +145,11 @@ struct AVFormatInternal { * ID3v2 tag useful for MP3 demuxing */ AVDictionary *id3v2_meta; + + /* + * Prefer the codec framerate for avg_frame_rate computation. + */ + int prefer_codec_framerate; }; struct AVStreamInternal { -- cgit v1.2.3