Mercurial > libavcodec.hg
comparison resample.c @ 2308:de38526a1f3f libavcodec
user selectble cutoff frequency
| author | michael |
|---|---|
| date | Thu, 21 Oct 2004 21:07:40 +0000 |
| parents | 072fc321fbe6 |
| children | e25782262d7d |
comparison
equal
deleted
inserted
replaced
| 2307:df3e4a8e6aac | 2308:de38526a1f3f |
|---|---|
| 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, 16, 10, 0); | 163 s->resample_context= av_resample_init(output_rate, input_rate, 16, 10, 0, 1.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 */ |
