diff mbox

[FFmpeg-devel,V3,05/11] lavc/extract_extradata_bsf: support dump options.

Message ID bde80995-7e20-3887-40ea-3ffa7d6236ce@gmail.com
State Accepted
Headers show

Commit Message

Jun Zhao March 14, 2018, 5:42 a.m. UTC
From 3d49b455b8bea2ee311b011fd9078e180c7bdf9a Mon Sep 17 00:00:00 2001
From: Jun Zhao <mypopydev@gmail.com>
Date: Thu, 8 Mar 2018 14:05:53 +0800
Subject: [PATCH V3 05/11] 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(-)

Comments

James Almer March 17, 2018, 3:19 p.m. UTC | #1
On 3/14/2018 2:42 AM, Jun Zhao wrote:
> 
> 0005-lavc-extract_extradata_bsf-support-dump-options.patch
> 
> 
> From 3d49b455b8bea2ee311b011fd9078e180c7bdf9a Mon Sep 17 00:00:00 2001
> From: Jun Zhao <mypopydev@gmail.com>
> Date: Thu, 8 Mar 2018 14:05:53 +0800
> Subject: [PATCH V3 05/11] 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(-)
> 
> 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 },
>  };

Applied, thanks.
Jun Zhao March 19, 2018, 12:19 a.m. UTC | #2
On 2018/3/17 23:19, James Almer wrote:
> On 3/14/2018 2:42 AM, Jun Zhao wrote:
>> 0005-lavc-extract_extradata_bsf-support-dump-options.patch
>>
>>
>> From 3d49b455b8bea2ee311b011fd9078e180c7bdf9a Mon Sep 17 00:00:00 2001
>> From: Jun Zhao <mypopydev@gmail.com>
>> Date: Thu, 8 Mar 2018 14:05:53 +0800
>> Subject: [PATCH V3 05/11] 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(-)
>>
>> 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 },
>>  };
> Applied, thanks.
Thanks, James
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
diff mbox

Patch

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 },
 };