Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas George <george@nsup.org>2013-10-28 14:50:09 +0400
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2013-11-28 04:08:37 +0400
commit8f7d839e15c98ada33b60d4e51ffa200473e7905 (patch)
tree324827f89a1d406310f48149dff7c35f6e23d60d
parent93716f7bea11918b54b38d64f1de15aa38eea45e (diff)
lavd/lavfi: support unknown channel layouts.
(cherry picked from commit 863fb11f63f7f60feec390f3c54dd13606e07d05)
-rw-r--r--libavdevice/lavfi.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavdevice/lavfi.c b/libavdevice/lavfi.c
index 9322ce5961..dcb94adbe0 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;