Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwm4 <nfxjfg@googlemail.com>2017-05-23 14:36:38 +0300
committerwm4 <nfxjfg@googlemail.com>2017-06-07 12:08:06 +0300
commit66cf78e932956eaa7d5a9dab8766efbfc1431e55 (patch)
tree6fb2a32d50643c5b00d5c7a149d2bba21a7f8142 /libavformat/internal.h
parent34c52005605d68f7cd1957b169b6732c7d2447d9 (diff)
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.
Diffstat (limited to 'libavformat/internal.h')
-rw-r--r--libavformat/internal.h5
1 files changed, 5 insertions, 0 deletions
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 {