Re: [FFmpeg-devel] [PATCH] af_hdcd: add flags to AVOption defs

2016-08-02 Thread Timothy Gu
On Mon, Aug 1, 2016 at 8:56 AM Burt P  wrote:

> Signed-off-by: Burt P 
> ---
>  libavfilter/af_hdcd.c | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
>

Applied. You might also want to look into using AV_OPT_TYPE_BOOL for these
two options.

Timothy
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel


[FFmpeg-devel] [PATCH] af_hdcd: add flags to AVOption defs

2016-08-01 Thread Burt P
Signed-off-by: Burt P 
---
 libavfilter/af_hdcd.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/libavfilter/af_hdcd.c b/libavfilter/af_hdcd.c
index 2d7fe8d..7c90861 100644
--- a/libavfilter/af_hdcd.c
+++ b/libavfilter/af_hdcd.c
@@ -903,11 +903,12 @@ typedef struct HDCDContext {
 } HDCDContext;
 
 #define OFFSET(x) offsetof(HDCDContext, x)
+#define A AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM
 static const AVOption hdcd_options[] = {
 { "process_stereo", "Process stereo channels together. Only apply 
target_gain when both channels match.",
-OFFSET(process_stereo), AV_OPT_TYPE_INT, { .i64 = 
HDCD_PROCESS_STEREO_DEFAULT }, 0, 1, 0 },
+OFFSET(process_stereo), AV_OPT_TYPE_INT, { .i64 = 
HDCD_PROCESS_STEREO_DEFAULT }, 0, 1, A },
 { "force_pe", "Always extend peaks above -3dBFS even when PE is not 
signaled.",
-OFFSET(force_pe), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, 1, 0 },
+OFFSET(force_pe), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, 1, A },
 {NULL}
 };
 
-- 
2.7.4

___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel