1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-28 20:53:54 +02:00

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.
This commit is contained in:
Anton Khirnov 2023-05-28 12:16:28 +02:00
parent d8c61ba723
commit c7a05ac117

View File

@ -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) {