Mercurial > libavcodec.hg
comparison resample.c @ 2109:84637c6ca74e libavcodec
various resampling fixes
author | michael |
---|---|
date | Wed, 30 Jun 2004 14:15:31 +0000 |
parents | db6a5e3e74a0 |
children | 072fc321fbe6 |
comparison
equal
deleted
inserted
replaced
2108:ce669c39e3d5 | 2109:84637c6ca74e |
---|---|
173 short *bufin[2]; | 173 short *bufin[2]; |
174 short *bufout[2]; | 174 short *bufout[2]; |
175 short *buftmp2[2], *buftmp3[2]; | 175 short *buftmp2[2], *buftmp3[2]; |
176 int lenout; | 176 int lenout; |
177 | 177 |
178 if (s->input_channels == s->output_channels && s->ratio == 1.0) { | 178 if (s->input_channels == s->output_channels && s->ratio == 1.0 && 0) { |
179 /* nothing to do */ | 179 /* nothing to do */ |
180 memcpy(output, input, nb_samples * s->input_channels * sizeof(short)); | 180 memcpy(output, input, nb_samples * s->input_channels * sizeof(short)); |
181 return nb_samples; | 181 return nb_samples; |
182 } | 182 } |
183 | 183 |