Commit 75492cce authored by Michael Niedermayer's avatar Michael Niedermayer

lavfi: fix resample with differing formats

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 1f3f7bd4
......@@ -107,7 +107,7 @@ static int config_output(AVFilterLink *outlink)
//TODO: make the resampling parameters (filter size, phrase shift, linear, cutoff) configurable
aresample->swr = swr_alloc_set_opts(aresample->swr,
inlink->channel_layout, inlink->format, aresample->out_rate,
outlink->channel_layout, outlink->format, outlink->sample_rate,
inlink->channel_layout, inlink->format, inlink->sample_rate,
0, ctx);
if (!aresample->swr)
......
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