lavfi: fix resample with differing formats

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/30/merge
Michael Niedermayer 13 years ago
parent 1f3f7bd444
commit 75492cce8e
  1. 2
      libavfilter/af_aresample.c

@ -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)

Loading…
Cancel
Save