comparison cook.c @ 4594:a96d905dcbaa libavcodec

Add av_ prefix to clip functions
author reimar
date Sun, 25 Feb 2007 10:27:12 +0000
parents f89d4caa8d4e
children 9f74306d4ac7
comparison
equal deleted inserted replaced
4593:2aea8bf268d8 4594:a96d905dcbaa
996 996
997 /* Clip and convert floats to 16 bits. 997 /* Clip and convert floats to 16 bits.
998 */ 998 */
999 for (j = 0; j < q->samples_per_channel; j++) { 999 for (j = 0; j < q->samples_per_channel; j++) {
1000 out[chan + q->nb_channels * j] = 1000 out[chan + q->nb_channels * j] =
1001 clip(lrintf(q->mono_mdct_output[j]), -32768, 32767); 1001 av_clip(lrintf(q->mono_mdct_output[j]), -32768, 32767);
1002 } 1002 }
1003 } 1003 }
1004 1004
1005 1005
1006 /** 1006 /**