diff options
author | Nicolas George <george@nsup.org> | 2013-10-28 11:50:09 +0100 |
---|---|---|
committer | Nicolas George <george@nsup.org> | 2013-11-03 10:29:53 +0100 |
commit | 863fb11f63f7f60feec390f3c54dd13606e07d05 (patch) | |
tree | 0c1b83c516c2c1a9acb431274326ee0f351d94a6 /libavdevice | |
parent | eeb975f5cda31aff3deb8cb4925ea0bf3e897236 (diff) | |
download | ffmpeg-streaming-863fb11f63f7f60feec390f3c54dd13606e07d05.zip ffmpeg-streaming-863fb11f63f7f60feec390f3c54dd13606e07d05.tar.gz |
lavd/lavfi: support unknown channel layouts.
Diffstat (limited to 'libavdevice')
-rw-r--r-- | libavdevice/lavfi.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; |