Mercurial > libavcodec.hg
comparison resample2.c @ 5129:0244bba24b43 libavcodec
misc typo fixes
author | diego |
---|---|
date | Tue, 12 Jun 2007 18:50:50 +0000 |
parents | f99e40a7155b |
children | 2b72f9bc4f06 |
comparison
equal
deleted
inserted
replaced
5128:d98460d07146 | 5129:0244bba24b43 |
---|---|
175 } | 175 } |
176 #endif | 176 #endif |
177 } | 177 } |
178 | 178 |
179 /** | 179 /** |
180 * initalizes a audio resampler. | 180 * Initializes an audio resampler. |
181 * note, if either rate is not a integer then simply scale both rates up so they are | 181 * Note, if either rate is not an integer then simply scale both rates up so they are. |
182 */ | 182 */ |
183 AVResampleContext *av_resample_init(int out_rate, int in_rate, int filter_size, int phase_shift, int linear, double cutoff){ | 183 AVResampleContext *av_resample_init(int out_rate, int in_rate, int filter_size, int phase_shift, int linear, double cutoff){ |
184 AVResampleContext *c= av_mallocz(sizeof(AVResampleContext)); | 184 AVResampleContext *c= av_mallocz(sizeof(AVResampleContext)); |
185 double factor= FFMIN(out_rate * cutoff / in_rate, 1.0); | 185 double factor= FFMIN(out_rate * cutoff / in_rate, 1.0); |
186 int phase_count= 1<<phase_shift; | 186 int phase_count= 1<<phase_shift; |