|
@@ -1462,10 +1462,8 @@ AVDictionary *filter_codec_opts(AVDictionary *opts, enum AVCodecID codec_id, |
|
|
if (!codec) |
|
|
if (!codec) |
|
|
codec = s->oformat ? avcodec_find_encoder(codec_id) |
|
|
codec = s->oformat ? avcodec_find_encoder(codec_id) |
|
|
: avcodec_find_decoder(codec_id); |
|
|
: avcodec_find_decoder(codec_id); |
|
|
if (!codec) |
|
|
|
|
|
return NULL; |
|
|
|
|
|
|
|
|
|
|
|
switch (codec->type) { |
|
|
|
|
|
|
|
|
switch (st->codec->codec_type) { |
|
|
case AVMEDIA_TYPE_VIDEO: |
|
|
case AVMEDIA_TYPE_VIDEO: |
|
|
prefix = 'v'; |
|
|
prefix = 'v'; |
|
|
flags |= AV_OPT_FLAG_VIDEO_PARAM; |
|
|
flags |= AV_OPT_FLAG_VIDEO_PARAM; |
|
|