wavpack: Fix 32-bit clipping
authorDerek Buitenhuis <derek.buitenhuis@gmail.com>
Fri, 16 Dec 2011 18:31:29 +0000 (13:31 -0500)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 3 Jan 2012 18:04:14 +0000 (19:04 +0100)
commitc2aa7b70d426b82a54b77cd235f81a78ab6224ee
tree552e0e194e2203eb933089a8bfc8b10928817c87
parent8d055e9079f151f13d34e8e04f4aa7ca0273c448
wavpack: Fix 32-bit clipping

In the case that (frame_flags & 0x03) == 3, hybrid_maxclip
may have had a signed integer overflow.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
(cherry picked from commit bb9747c8eee134f2bf6058d368f8cbc799f4b7d3)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/wavpack.c