Revision 1ce9d6b8 libavcodec/ac3enc.c

View differences:

libavcodec/ac3enc.c
43 43
/** Scale a float value by 2^bits and convert to an integer. */
44 44
#define SCALE_FLOAT(a, bits) lrintf((a) * (float)(1 << (bits)))
45 45

  
46
/** Scale a float value by 2^15, convert to an integer, and clip to int16_t range. */
46
/** Scale a float value by 2^15, convert to an integer, and clip to range -32767..32767. */
47 47
#define FIX15(a) av_clip(SCALE_FLOAT(a, 15), -32767, 32767)
48 48

  
49 49

  

Also available in: Unified diff