[FFmpeg-cvslog] lavfi: fix resample with differing formats
Michael Niedermayer
git at videolan.org
Wed May 16 03:59:43 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed May 16 03:53:29 2012 +0200| [75492cce8e5b0cad7eda70cade1a9f33055c6695] | committer: Michael Niedermayer
lavfi: fix resample with differing formats
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=75492cce8e5b0cad7eda70cade1a9f33055c6695
---
libavfilter/af_aresample.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavfilter/af_aresample.c b/libavfilter/af_aresample.c
index 521ccf7..abc8235 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)
More information about the ffmpeg-cvslog
mailing list