[FFmpeg-devel,04/10] lavc/extract_extradata_bsf: support dump options.

Submitted by Jun Zhao on March 8, 2018, 8:42 a.m.

Details

Message ID f1a4aedc-15a5-9539-8f3c-95f26d98e25a@gmail.com
State New
Headers show

Commit Message

Jun Zhao March 8, 2018, 8:42 a.m.
From 1a833a4bbd9cfe22bf2c3c31a76b2028d67f2ad2 Mon Sep 17 00:00:00 2001
From: Jun Zhao <mypopydev@gmail.com>
Date: Thu, 8 Mar 2018 14:05:53 +0800
Subject: [PATCH 04/10] lavc/extract_extradata_bsf: support dump options.

support dump bit stream filter options

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

Patch hide | download patch | download mbox

diff --git a/libavcodec/extract_extradata_bsf.c b/libavcodec/extract_extradata_bsf.c
index d40907a675..14f584749d 100644
--- a/libavcodec/extract_extradata_bsf.c
+++ b/libavcodec/extract_extradata_bsf.c
@@ -315,9 +315,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 },
 };