From 75492cce8e5b0cad7eda70cade1a9f33055c6695 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Wed, 16 May 2012 03:53:29 +0200 Subject: lavfi: fix resample with differing formats Signed-off-by: Michael Niedermayer --- libavfilter/af_aresample.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavfilter/af_aresample.c') diff --git a/libavfilter/af_aresample.c b/libavfilter/af_aresample.c index 521ccf7f8d..abc823507c 100644 --- a/libavfilter/af_aresample.c +++ b/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) -- cgit v1.2.3