summaryrefslogtreecommitdiff
path: root/libavfilter/buffersink.c
diff options
context:
space:
mode:
authorJun Zhao <mypopydev@gmail.com>2018-12-09 22:30:41 +0800
committerJun Zhao <jun.zhao@intel.com>2018-12-09 23:13:55 +0800
commit5ecd4f24f00bdeb1daeef64aeb5ab8fa1827a892 (patch)
tree5164372f760199b9ea9d9115b665b09bb9ed5cf4 /libavfilter/buffersink.c
parentc782e7aa9e981a2f27db3f3afced5a6f10d6f8d9 (diff)
lavfi/buffersink: fix abuffersink flag setting issue
abuffersink need to setting AV_OPT_FLAG_AUDIO_PARAM flag. Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Jun Zhao <mypopydev@gmail.com>
Diffstat (limited to 'libavfilter/buffersink.c')
-rw-r--r--libavfilter/buffersink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/buffersink.c b/libavfilter/buffersink.c
index 0f87b5439a..f9b0b5e7d8 100644
--- a/libavfilter/buffersink.c
+++ b/libavfilter/buffersink.c
@@ -320,7 +320,7 @@ static const AVOption buffersink_options[] = {
{ NULL },
};
#undef FLAGS
-#define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM
+#define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_AUDIO_PARAM
static const AVOption abuffersink_options[] = {
{ "sample_fmts", "set the supported sample formats", OFFSET(sample_fmts), AV_OPT_TYPE_BINARY, .flags = FLAGS },
{ "sample_rates", "set the supported sample rates", OFFSET(sample_rates), AV_OPT_TYPE_BINARY, .flags = FLAGS },