[FFmpeg-devel] [PATCH] lavd/lavfi: support unknown channel layouts.

Nicolas George george at nsup.org
Mon Oct 28 11:56:52 CET 2013


Signed-off-by: Nicolas George <george at nsup.org>
---
 libavdevice/lavfi.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavdevice/lavfi.c b/libavdevice/lavfi.c
index 559f721..a177ad0 100644
--- a/libavdevice/lavfi.c
+++ b/libavdevice/lavfi.c
@@ -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;
-- 
1.8.4.rc3



More information about the ffmpeg-devel mailing list