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

Nicolas George git at videolan.org
Thu Nov 28 01:36:06 CET 2013


ffmpeg | branch: release/2.0 | Nicolas George <george at nsup.org> | Mon Oct 28 11:50:09 2013 +0100| [8f7d839e15c98ada33b60d4e51ffa200473e7905] | committer: Carl Eugen Hoyos

lavd/lavfi: support unknown channel layouts.
(cherry picked from commit 863fb11f63f7f60feec390f3c54dd13606e07d05)

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

 libavdevice/lavfi.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavdevice/lavfi.c b/libavdevice/lavfi.c
index 9322ce5..dcb94ad 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;



More information about the ffmpeg-cvslog mailing list