aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/af_hdcd.c
diff options
context:
space:
mode:
authorBurt P <pburt0@gmail.com>2016-08-01 10:56:04 -0500
committerTimothy Gu <timothygu99@gmail.com>2016-08-02 22:40:23 -0700
commite0b8cba0580e8a1ccf02f4c6c9bc1f448eec1ac8 (patch)
tree8d4517e29359d22baa3d706ef7145a49fe3c0790 /libavfilter/af_hdcd.c
parentfd242479c6667dbd5e6e869c6bbade4f3d368f29 (diff)
downloadffmpeg-e0b8cba0580e8a1ccf02f4c6c9bc1f448eec1ac8.tar.gz
af_hdcd: add flags to AVOption defs
Signed-off-by: Burt P <pburt0@gmail.com> Signed-off-by: Timothy Gu <timothygu99@gmail.com>
Diffstat (limited to 'libavfilter/af_hdcd.c')
-rw-r--r--libavfilter/af_hdcd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavfilter/af_hdcd.c b/libavfilter/af_hdcd.c
index 2ca295015a..ef3c369714 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}
};