On Wed, 7 Jun 2017, wm4 wrote:
On Wed, 31 May 2017 18:26:01 +0200 wm4 <[email protected]> wrote: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 +++++ libavformat/mpegts.c | 2 ++ libavformat/utils.c | 10 ++++++++++ 3 files changed, 17 insertions(+) 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;
Does this approach have any benefit over signalling this feature as a demuxer flag?
Thanks, Marton _______________________________________________ ffmpeg-devel mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
