[FFmpeg-devel] [PATCH] audio conversion clipping/overflows

Michael Niedermayer michaelni
Tue Mar 2 12:43:23 CET 2010


On Mon, Mar 01, 2010 at 04:42:55PM +0000, M?ns Rullg?rd wrote:
[...]
> I would suggest scaling the float values by (1<<N)-1.  This would
> sacrifice the INT_MIN output value in return for an unclipped output
> as well as speed.

thats not going to work because floats have 24bits mantisse and
(1<<31)-1 isnt different from 1<<31 with that few bits.

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

He who knows, does not speak. He who speaks, does not know. -- Lao Tsu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100302/1720c1db/attachment.pgp>



More information about the ffmpeg-devel mailing list