set more reasonable cutoff for audio rate conversion
[ffmpeg.git] / libavcodec / resample.c
index 043e812c8fa8b159897bec713fd589fc483168b7..ea5c6d61c8ef041ba68b9d59aaa4248a30e622b5 100644 (file)
@@ -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;
 }