[FFmpeg-cvslog] avfilter/abuffersink: use AV_OPT_TYPE_BOOL for all_channel_counts option

Clément Bœsch git at videolan.org
Tue Sep 8 23:35:21 CEST 2015


ffmpeg | branch: master | Clément Bœsch <u at pkh.me> | Tue Sep  8 23:34:18 2015 +0200| [e73f46b105d54abdf634945cd8d0c0a9bceb0aaf] | committer: Clément Bœsch

avfilter/abuffersink: use AV_OPT_TYPE_BOOL for all_channel_counts option

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e73f46b105d54abdf634945cd8d0c0a9bceb0aaf
---

 libavfilter/buffersink.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/buffersink.c b/libavfilter/buffersink.c
index de48b3d..e693161 100644
--- a/libavfilter/buffersink.c
+++ b/libavfilter/buffersink.c
@@ -404,7 +404,7 @@ static const AVOption abuffersink_options[] = {
     { "sample_rates",    "set the supported sample rates",    OFFSET(sample_rates),    AV_OPT_TYPE_BINARY, .flags = FLAGS },
     { "channel_layouts", "set the supported channel layouts", OFFSET(channel_layouts), AV_OPT_TYPE_BINARY, .flags = FLAGS },
     { "channel_counts",  "set the supported channel counts",  OFFSET(channel_counts),  AV_OPT_TYPE_BINARY, .flags = FLAGS },
-    { "all_channel_counts", "accept all channel counts", OFFSET(all_channel_counts), AV_OPT_TYPE_INT, {.i64 = 0}, 0, 1, FLAGS },
+    { "all_channel_counts", "accept all channel counts", OFFSET(all_channel_counts), AV_OPT_TYPE_BOOL, {.i64 = 0}, 0, 1, FLAGS },
     { NULL },
 };
 #undef FLAGS



More information about the ffmpeg-cvslog mailing list