comparison resample.c @ 4712:5c0c96d437f2 libavcodec

set more reasonable cutoff for audio rate conversion
author michael
date Thu, 22 Mar 2007 14:27:16 +0000
parents c8c591fe26f8
children 45d083bbbbe7
comparison
equal deleted inserted replaced
4711:21aad2a2b725 4712:5c0c96d437f2
159 * expand to 6 channels after the resampling. 159 * expand to 6 channels after the resampling.
160 */ 160 */
161 if(s->filter_channels>2) 161 if(s->filter_channels>2)
162 s->filter_channels = 2; 162 s->filter_channels = 2;
163 163
164 s->resample_context= av_resample_init(output_rate, input_rate, 16, 10, 0, 1.0); 164 #define TAPS 16
165 s->resample_context= av_resample_init(output_rate, input_rate, TAPS, 10, 0, 0.8);
165 166
166 return s; 167 return s;
167 } 168 }
168 169
169 /* resample audio. 'nb_samples' is the number of input samples */ 170 /* resample audio. 'nb_samples' is the number of input samples */