summaryrefslogtreecommitdiff
path: root/libavcodec/noise_bsf.c
diff options
context:
space:
mode:
authorJun Zhao <mypopydev@gmail.com>2018-03-08 14:57:47 +0800
committerJames Almer <jamrial@gmail.com>2018-03-21 22:00:32 -0300
commitb8e406c01a75904e84c743a35ac4c2f28de4a625 (patch)
tree50f41e447f46bc7194e9c449c5c5f56bed25c2c5 /libavcodec/noise_bsf.c
parenta4726288f8c14fecb8e0e2b36acc6c595dfa3b03 (diff)
downloadffmpeg-b8e406c01a75904e84c743a35ac4c2f28de4a625.tar.gz
lavc/noise_bsf: support dump options.
support dump bit stream filter options. Signed-off-by: Jun Zhao <mypopydev@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/noise_bsf.c')
-rw-r--r--libavcodec/noise_bsf.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/noise_bsf.c b/libavcodec/noise_bsf.c
index 84b94032ad..6bb89507fc 100644
--- a/libavcodec/noise_bsf.c
+++ b/libavcodec/noise_bsf.c
@@ -78,9 +78,10 @@ fail:
}
#define OFFSET(x) offsetof(NoiseContext, x)
+#define FLAGS (AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_BSF_PARAM)
static const AVOption options[] = {
- { "amount", NULL, OFFSET(amount), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, INT_MAX },
- { "dropamount", NULL, OFFSET(dropamount), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, INT_MAX },
+ { "amount", NULL, OFFSET(amount), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, INT_MAX, FLAGS },
+ { "dropamount", NULL, OFFSET(dropamount), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, INT_MAX, FLAGS },
{ NULL },
};