Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer authored on 2012/05/16 10:53:29... | ... |
@@ -107,7 +107,7 @@ static int config_output(AVFilterLink *outlink) |
107 | 107 |
|
108 | 108 |
//TODO: make the resampling parameters (filter size, phrase shift, linear, cutoff) configurable |
109 | 109 |
aresample->swr = swr_alloc_set_opts(aresample->swr, |
110 |
- inlink->channel_layout, inlink->format, aresample->out_rate, |
|
110 |
+ outlink->channel_layout, outlink->format, outlink->sample_rate, |
|
111 | 111 |
inlink->channel_layout, inlink->format, inlink->sample_rate, |
112 | 112 |
0, ctx); |
113 | 113 |
if (!aresample->swr) |