lavc/extract_extradata_bsf: support dump options.
authorJun Zhao <mypopydev@gmail.com>
Thu, 8 Mar 2018 06:05:53 +0000 (14:05 +0800)
committerJames Almer <jamrial@gmail.com>
Sat, 17 Mar 2018 15:16:35 +0000 (12:16 -0300)
support dump bit stream filter options

Signed-off-by: Jun Zhao <mypopydev@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
libavcodec/extract_extradata_bsf.c

index 1c386be..82632c5 100644 (file)
@@ -322,9 +322,10 @@ static const enum AVCodecID codec_ids[] = {
 };
 
 #define OFFSET(x) offsetof(ExtractExtradataContext, x)
+#define FLAGS (AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_BSF_PARAM)
 static const AVOption options[] = {
     { "remove", "remove the extradata from the bitstream", OFFSET(remove), AV_OPT_TYPE_INT,
-        { .i64 = 0 }, 0, 1 },
+        { .i64 = 0 }, 0, 1, FLAGS },
     { NULL },
 };