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

Justin Ruggles justin.ruggles
Wed Dec 22 13:29:06 CET 2010


On 12/22/2010 06:31 AM, Reimar D?ffinger wrote:

> 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.


Done.

Sorry, I'll be more careful.

-Justin



More information about the ffmpeg-cvslog mailing list