[FFmpeg-devel] [PATCH 1/2] wavpack: Clip samples after shifting

Derek Buitenhuis derek.buitenhuis at gmail.com
Sat Dec 17 02:41:14 CET 2011


On 16/12/2011 8:31 PM, Michael Niedermayer wrote:
> this does not work with 32bit
>
> for example consider 0x40000000 and post_shift of 2 (or 1)
> it will be 0 or worse before it gets cliped correctly to 0x7FFFFFFF

Indeed you are correct. Fixed patch incoming.

- Derek


More information about the ffmpeg-devel mailing list