From 8ec04d344ad6c832f1c060e7b62148bd0dc29ed1 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 22 Mar 2007 14:27:16 +0000 Subject: set more reasonable cutoff for audio rate conversion Originally committed as revision 8486 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/resample.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libavcodec/resample.c') diff --git a/libavcodec/resample.c b/libavcodec/resample.c index 043e812c8f..ea5c6d61c8 100644 --- a/libavcodec/resample.c +++ b/libavcodec/resample.c @@ -161,7 +161,8 @@ ReSampleContext *audio_resample_init(int output_channels, int input_channels, if(s->filter_channels>2) s->filter_channels = 2; - s->resample_context= av_resample_init(output_rate, input_rate, 16, 10, 0, 1.0); +#define TAPS 16 + s->resample_context= av_resample_init(output_rate, input_rate, TAPS, 10, 0, 0.8); return s; } -- cgit v1.2.3