avfilter/af_amix: use ff_all_channel_counts() instead of ff_all_channel_layouts()
authorPaul B Mahol <onemda@gmail.com>
Sat, 10 Sep 2016 11:05:31 +0000 (13:05 +0200)
committerPaul B Mahol <onemda@gmail.com>
Sat, 10 Sep 2016 11:05:31 +0000 (13:05 +0200)
Adds support for filtering frames with unknown channel layouts.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavfilter/af_amix.c

index 0e32c8a..e18743e 100644 (file)
@@ -521,7 +521,7 @@ static int query_formats(AVFilterContext *ctx)
     AVFilterChannelLayouts *layouts;
     int ret;
 
-    layouts = ff_all_channel_layouts();
+    layouts = ff_all_channel_counts();
     if (!layouts) {
         ret = AVERROR(ENOMEM);
         goto fail;