comparison cook.c @ 5348:8627a229d2d2 libavcodec

float_t was a typo that compiled on macosx
author mhoffman
date Mon, 16 Jul 2007 14:45:54 +0000
parents 59ec490fe985
children 503498b93901
comparison
equal deleted inserted replaced
5347:59ec490fe985 5348:8627a229d2d2
899 */ 899 */
900 static void 900 static void
901 saturate_output_float (COOKContext *q, int chan, int16_t *out) 901 saturate_output_float (COOKContext *q, int chan, int16_t *out)
902 { 902 {
903 int j; 903 int j;
904 float_t *output = q->mono_mdct_output + q->samples_per_channel; 904 float *output = q->mono_mdct_output + q->samples_per_channel;
905 /* Clip and convert floats to 16 bits. 905 /* Clip and convert floats to 16 bits.
906 */ 906 */
907 for (j = 0; j < q->samples_per_channel; j++) { 907 for (j = 0; j < q->samples_per_channel; j++) {
908 out[chan + q->nb_channels * j] = 908 out[chan + q->nb_channels * j] =
909 av_clip(lrintf(output[j]), -32768, 32767); 909 av_clip(lrintf(output[j]), -32768, 32767);