summaryrefslogtreecommitdiff
path: root/libavfilter/af_aresample.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-05-16 03:53:29 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-05-16 03:53:29 +0200
commit75492cce8e5b0cad7eda70cade1a9f33055c6695 (patch)
treebbcbb03818b8e8908ca0e8c28df0415eb8ac51a0 /libavfilter/af_aresample.c
parent1f3f7bd4443bcf7637c8eee05f2bad8296e5b765 (diff)
lavfi: fix resample with differing formats
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/af_aresample.c')
-rw-r--r--libavfilter/af_aresample.c2
1 files changed, 1 insertions, 1 deletions
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)