diff options
author | Anton Khirnov <anton@khirnov.net> | 2024-10-13 12:35:31 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2024-10-16 16:46:29 +0200 |
commit | 31da5222a400a385c0633c54e20b0ae1b30730df (patch) | |
tree | 943ba935ae8a5f495f73209df6eb73755fced600 /libavformat/mpegts.c | |
parent | 12e5116872557c8d9cea9408d05867ef08e0bfc4 (diff) | |
download | ffmpeg-31da5222a400a385c0633c54e20b0ae1b30730df.tar.gz |
lavf: replace FFFormatContext.prefer_codec_framerate with FF_INFMT_FLAG
There is no reason for this to be a dynamic property, as the only
demuxer using this sets it unconditionally.
Diffstat (limited to 'libavformat/mpegts.c')
-rw-r--r-- | libavformat/mpegts.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index 04565a2011..81481f6f76 100644 --- a/libavformat/mpegts.c +++ b/libavformat/mpegts.c @@ -3113,8 +3113,6 @@ static int mpegts_read_header(AVFormatContext *s) int64_t pos, probesize = s->probesize; int64_t seekback = FFMAX(s->probesize, (int64_t)ts->resync_size + PROBE_PACKET_MAX_BUF); - ffformatcontext(s)->prefer_codec_framerate = 1; - if (ffio_ensure_seekback(pb, seekback) < 0) av_log(s, AV_LOG_WARNING, "Failed to allocate buffers for seekback\n"); @@ -3446,6 +3444,7 @@ const FFInputFormat ff_mpegts_demuxer = { .read_packet = mpegts_read_packet, .read_close = mpegts_read_close, .read_timestamp = mpegts_get_dts, + .flags_internal = FF_INFMT_FLAG_PREFER_CODEC_FRAMERATE, }; const FFInputFormat ff_mpegtsraw_demuxer = { @@ -3458,4 +3457,5 @@ const FFInputFormat ff_mpegtsraw_demuxer = { .read_packet = mpegts_raw_read_packet, .read_close = mpegts_read_close, .read_timestamp = mpegts_get_dts, + .flags_internal = FF_INFMT_FLAG_PREFER_CODEC_FRAMERATE, }; |