In this case, no encoder specific options are filtered, only
options specific to that codec type in general.
---
cmdutils.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/cmdutils.c b/cmdutils.c
index 688f501..fa56326 100644
--- a/cmdutils.c
+++ b/cmdutils.c
@@ -1462,10 +1462,8 @@ AVDictionary *filter_codec_opts(AVDictionary *opts, enum
AVCodecID codec_id,
if (!codec)
codec = s->oformat ? avcodec_find_encoder(codec_id)
: avcodec_find_decoder(codec_id);
- if (!codec)
- return NULL;
- switch (codec->type) {
+ switch (st->codec->codec_type) {
case AVMEDIA_TYPE_VIDEO:
prefix = 'v';
flags |= AV_OPT_FLAG_VIDEO_PARAM;
--
1.7.9.4
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel