]> git.sesse.net Git - ffmpeg/commitdiff
lavfi/buffersink: fix abuffersink flag setting issue
authorJun Zhao <mypopydev@gmail.com>
Sun, 9 Dec 2018 14:30:41 +0000 (22:30 +0800)
committerJun Zhao <jun.zhao@intel.com>
Sun, 9 Dec 2018 15:13:55 +0000 (23:13 +0800)
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>
libavfilter/buffersink.c

index 0f87b5439acd0819a5b4ba380a82377a21652d64..f9b0b5e7d8685bfd7bcaedaaa4799ced3d62f9b9 100644 (file)
@@ -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 },