changeset 4712:5c0c96d437f2 libavcodec

set more reasonable cutoff for audio rate conversion
author michael
date Thu, 22 Mar 2007 14:27:16 +0000
parents 21aad2a2b725
children 47ee459ce964
files resample.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/resample.c	Thu Mar 22 13:27:11 2007 +0000
+++ b/resample.c	Thu Mar 22 14:27:16 2007 +0000
@@ -161,7 +161,8 @@
     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;
 }