[MPlayer-cvslog] r33811 - trunk/libaf/af_format.c
Reimar Döffinger
Reimar.Doeffinger at gmx.de
Tue Jul 5 08:48:17 CEST 2011
On 5 Jul 2011, at 00:24, iive <subversion at mplayerhq.hu> wrote:
> Author: iive
> Date: Tue Jul 5 00:24:52 2011
> New Revision: 33811
>
> Log:
> Audio format conversion from float to int is not checked for overflow.
> The float may be slightly off the [-1;1] range thus causing audible
> crackling noise.
>
> Add proper clipping using av_clip functions.
That is not all you did.
You changed the multipliers, you added a use of ldexp for half the cases and you made the code throw away up to 8 bit precision when converting to int (for files decoding to float in the range [-1/256;1/256]).
Also float mantissa has 24 bits precision not 23.
>
More information about the MPlayer-cvslog
mailing list