[FFmpeg-cvslog] r26071 - in trunk: libavcodec/ac3enc.c tests/ref/acodec/ac3 tests/ref/lavf/rm tests/ref/seek/ac3_rm

Reimar Döffinger Reimar.Doeffinger
Wed Dec 22 12:31:10 CET 2010


On Tue, Dec 21, 2010 at 10:18:59PM +0100, jbr wrote:
> Modified: trunk/libavcodec/ac3enc.c
> ==============================================================================
> --- trunk/libavcodec/ac3enc.c	Tue Dec 21 21:56:25 2010	(r26070)
> +++ trunk/libavcodec/ac3enc.c	Tue Dec 21 22:18:58 2010	(r26071)
> @@ -44,7 +44,7 @@
>  #define SCALE_FLOAT(a, bits) lrintf((a) * (float)(1 << (bits)))
>  
>  /** Scale a float value by 2^15, convert to an integer, and clip to int16_t range. */
> -#define FIX15(a) av_clip_int16(SCALE_FLOAT(a, 15))
> +#define FIX15(a) av_clip(SCALE_FLOAT(a, 15), -32767, 32767)

Please, please, please also fix the comment.



More information about the ffmpeg-cvslog mailing list