diff options
author | James Almer <jamrial@gmail.com> | 2021-01-08 17:47:41 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2021-01-21 10:22:41 -0300 |
commit | a423bc9dc294c32e6162b900b58b1cc2d3c3328d (patch) | |
tree | 17795e3f1b960554c947c7fa003ec34a0d179ad4 /fftools | |
parent | f07a8b13f38bbd52d55c52d1d6ea1265b13c7a84 (diff) | |
download | ffmpeg-a423bc9dc294c32e6162b900b58b1cc2d3c3328d.tar.gz |
ffmpeg_opts: remove lowres check
The st->codec values are updated based on the lowres factor by
avformat_find_stream_info() when it runs an instance of the decoder internally,
and the same thing happens in ffmpeg.c when we open ist->dec_ctx with
avcodec_open2(), so these assignments are redundant.
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'fftools')
-rw-r--r-- | fftools/ffmpeg_opt.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/fftools/ffmpeg_opt.c b/fftools/ffmpeg_opt.c index fd923fce04..bf2eb26246 100644 --- a/fftools/ffmpeg_opt.c +++ b/fftools/ffmpeg_opt.c @@ -867,15 +867,6 @@ static void add_input_streams(OptionsContext *o, AVFormatContext *ic) case AVMEDIA_TYPE_VIDEO: if(!ist->dec) ist->dec = avcodec_find_decoder(par->codec_id); -#if FF_API_LOWRES - if (st->codec->lowres) { - ist->dec_ctx->lowres = st->codec->lowres; - ist->dec_ctx->width = st->codec->width; - ist->dec_ctx->height = st->codec->height; - ist->dec_ctx->coded_width = st->codec->coded_width; - ist->dec_ctx->coded_height = st->codec->coded_height; - } -#endif // avformat_find_stream_info() doesn't set this for us anymore. ist->dec_ctx->framerate = st->avg_frame_rate; |