Commit 863fb11f authored by Nicolas George's avatar Nicolas George

lavd/lavfi: support unknown channel layouts.

parent eeb975f5
...@@ -248,6 +248,10 @@ av_cold static int lavfi_read_header(AVFormatContext *avctx) ...@@ -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); ret = av_opt_set_int_list(sink, "sample_fmts", sample_fmts, AV_SAMPLE_FMT_NONE, AV_OPT_SEARCH_CHILDREN);
if (ret < 0) if (ret < 0)
goto end; 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; lavfi->sinks[i] = sink;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment