aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2023-05-28 12:16:28 +0200
committerAnton Khirnov <anton@khirnov.net>2023-06-05 16:15:04 +0200
commitc7a05ac117bc4152b27aa6127d67cb5bc0f09271 (patch)
treefc90959f7b0f674a38e5660c6769f59e0669118e
parentd8c61ba723331750e116a83185d54d577760a5e7 (diff)
downloadffmpeg-c7a05ac117bc4152b27aa6127d67cb5bc0f09271.tar.gz
fftools/ffmpeg_demux: do not set AVCodecContext.framerate
For decoding, this field is used by the decoder to export information to the caller; it does not make sense for the caller to set it.
-rw-r--r--fftools/ffmpeg_demux.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fftools/ffmpeg_demux.c b/fftools/ffmpeg_demux.c
index 5c15b8bad3..5e5f106368 100644
--- a/fftools/ffmpeg_demux.c
+++ b/fftools/ffmpeg_demux.c
@@ -1194,9 +1194,6 @@ static void add_input_streams(const OptionsContext *o, Demuxer *d)
switch (par->codec_type) {
case AVMEDIA_TYPE_VIDEO:
- // avformat_find_stream_info() doesn't set this for us anymore.
- ist->dec_ctx->framerate = st->avg_frame_rate;
-
MATCH_PER_STREAM_OPT(frame_rates, str, framerate, ic, st);
if (framerate && av_parse_video_rate(&ist->framerate,
framerate) < 0) {