comparison resample.c @ 2306:072fc321fbe6 libavcodec

make most resample filter parameters selectable at runtime
author michael
date Thu, 21 Oct 2004 03:11:34 +0000
parents 84637c6ca74e
children de38526a1f3f
comparison
equal deleted inserted replaced
2305:9568c8880d96 2306:072fc321fbe6
158 * expand to 6 channels after the resampling. 158 * expand to 6 channels after the resampling.
159 */ 159 */
160 if(s->filter_channels>2) 160 if(s->filter_channels>2)
161 s->filter_channels = 2; 161 s->filter_channels = 2;
162 162
163 s->resample_context= av_resample_init(output_rate, input_rate); 163 s->resample_context= av_resample_init(output_rate, input_rate, 16, 10, 0);
164 164
165 return s; 165 return s;
166 } 166 }
167 167
168 /* resample audio. 'nb_samples' is the number of input samples */ 168 /* resample audio. 'nb_samples' is the number of input samples */