diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-05-16 03:53:29 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-05-16 03:53:29 +0200 |
commit | 75492cce8e5b0cad7eda70cade1a9f33055c6695 (patch) | |
tree | bbcbb03818b8e8908ca0e8c28df0415eb8ac51a0 | |
parent | 1f3f7bd4443bcf7637c8eee05f2bad8296e5b765 (diff) | |
download | ffmpeg-75492cce8e5b0cad7eda70cade1a9f33055c6695.tar.gz |
lavfi: fix resample with differing formats
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavfilter/af_aresample.c | 2 |
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) |