diff options
author | Anton Khirnov <anton@khirnov.net> | 2024-03-22 16:41:56 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2024-03-28 08:40:01 +0100 |
commit | 2d06a7570e78520a5ba6897d9e0964eb65ab9a8c (patch) | |
tree | d00c1a53d959e44a5b889e97afd5b0e8e1ea2e2e /fftools/cmdutils.c | |
parent | da678161286cd84d34d3582b4a2d9bca69e64374 (diff) | |
download | ffmpeg-2d06a7570e78520a5ba6897d9e0964eb65ab9a8c.tar.gz |
fftools/cmdutils: do not use a random codec's private options
There is only a single caller of filter_codec_opts() that passes
a NULL codec to it, which is streamcopy in ffmpeg CLI. In that case we
only want generic AVCodecContext options, not private options of any
specific encoder.
Diffstat (limited to 'fftools/cmdutils.c')
-rw-r--r-- | fftools/cmdutils.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fftools/cmdutils.c b/fftools/cmdutils.c index f3c258bb99..1bb26f44f4 100644 --- a/fftools/cmdutils.c +++ b/fftools/cmdutils.c @@ -998,10 +998,6 @@ int filter_codec_opts(const AVDictionary *opts, enum AVCodecID codec_id, char prefix = 0; const AVClass *cc = avcodec_get_class(); - if (!codec) - codec = s->oformat ? avcodec_find_encoder(codec_id) - : avcodec_find_decoder(codec_id); - switch (st->codecpar->codec_type) { case AVMEDIA_TYPE_VIDEO: prefix = 'v'; |