[FFmpeg-devel] [PATCH] lavfi/buffersink: fix abuffersink flag setting issue

Jun Zhao mypopydev at gmail.com
Sun Dec 9 16:56:50 EET 2018


abuffersink need to setting AV_OPT_FLAG_AUDIO_PARAM flag.

Signed-off-by: Jun Zhao <mypopydev at gmail.com>
---
 libavfilter/buffersink.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavfilter/buffersink.c b/libavfilter/buffersink.c
index 0f87b54..f9b0b5e 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 },
-- 
1.7.1



More information about the ffmpeg-devel mailing list