lavd/lavfi: support unknown channel layouts.
authorNicolas George <george@nsup.org>
Mon, 28 Oct 2013 10:50:09 +0000 (11:50 +0100)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Thu, 28 Nov 2013 00:08:37 +0000 (01:08 +0100)
(cherry picked from commit 863fb11f63f7f60feec390f3c54dd13606e07d05)

libavdevice/lavfi.c

index 9322ce5..dcb94ad 100644 (file)
@@ -248,6 +248,10 @@ av_cold static int lavfi_read_header(AVFormatContext *avctx)
                 ret = av_opt_set_int_list(sink, "sample_fmts", sample_fmts,  AV_SAMPLE_FMT_NONE, AV_OPT_SEARCH_CHILDREN);
             if (ret < 0)
                 goto end;
+            ret = av_opt_set_int(sink, "all_channel_counts", 1,
+                                 AV_OPT_SEARCH_CHILDREN);
+            if (ret < 0)
+                goto end;
         }
 
         lavfi->sinks[i] = sink;