mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-30 11:22:14 +00:00
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.
This commit is contained in:
parent
da67816128
commit
2d06a7570e
@ -998,10 +998,6 @@ int filter_codec_opts(const AVDictionary *opts, enum AVCodecID codec_id,
|
|||||||
char prefix = 0;
|
char prefix = 0;
|
||||||
const AVClass *cc = avcodec_get_class();
|
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) {
|
switch (st->codecpar->codec_type) {
|
||||||
case AVMEDIA_TYPE_VIDEO:
|
case AVMEDIA_TYPE_VIDEO:
|
||||||
prefix = 'v';
|
prefix = 'v';
|
||||||
|
Loading…
Reference in New Issue
Block a user