mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-28 20:53:54 +02:00
lavfi/af_aresample: fix layout consistency check.
If the channel layout is unknown, lswr will internally use the default one for the corresponding number of channels.
This commit is contained in:
parent
89f9f69e3f
commit
2bd104c72a
@ -160,7 +160,7 @@ static int config_output(AVFilterLink *outlink)
|
||||
outlink->time_base = (AVRational) {1, out_rate};
|
||||
|
||||
av_assert0(outlink->sample_rate == out_rate);
|
||||
av_assert0(outlink->channel_layout == out_layout);
|
||||
av_assert0(outlink->channel_layout == out_layout || !outlink->channel_layout);
|
||||
av_assert0(outlink->format == out_format);
|
||||
|
||||
aresample->ratio = (double)outlink->sample_rate / inlink->sample_rate;
|
||||
|
Loading…
Reference in New Issue
Block a user