[FFmpeg-devel] [PATCH V2 04/11] lavc/extract_extradata_bsf: support dump options.

Jun Zhao mypopydev at gmail.com
Mon Mar 12 03:23:44 EET 2018


-------------- next part --------------
From b6af8d9d77411c15922d98b710f3c335ee898603 Mon Sep 17 00:00:00 2001
From: Jun Zhao <mypopydev at gmail.com>
Date: Thu, 8 Mar 2018 14:05:53 +0800
Subject: [PATCH V2 04/11] lavc/extract_extradata_bsf: support dump options.

support dump bit stream filter options

Signed-off-by: Jun Zhao <mypopydev at gmail.com>
---
 libavcodec/extract_extradata_bsf.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavcodec/extract_extradata_bsf.c b/libavcodec/extract_extradata_bsf.c
index 1c386becd7..007a6a71f5 100644
--- a/libavcodec/extract_extradata_bsf.c
+++ b/libavcodec/extract_extradata_bsf.c
@@ -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 },
 };
 
-- 
2.14.1



More information about the ffmpeg-devel mailing list