mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-16 20:07:04 +00:00
Merge commit 'cb6f8245aed2c26fe95c30cd68c45983277a945a'
* commit 'cb6f8245aed2c26fe95c30cd68c45983277a945a': cmdutils: Allow calling filter_codec_opts without a set encoder pnm: Use av_pix_fmt_desc_get instead of accessing the array directly Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
46f4b468e2
@ -1749,10 +1749,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;
|
||||||
|
Loading…
Reference in New Issue
Block a user