wavpack: Fix 32-bit clipping
authorDerek Buitenhuis <derek.buitenhuis@gmail.com>
Fri, 16 Dec 2011 18:31:29 +0000 (13:31 -0500)
committerAnton Khirnov <anton@khirnov.net>
Fri, 16 Dec 2011 19:55:53 +0000 (20:55 +0100)
commitbb9747c8eee134f2bf6058d368f8cbc799f4b7d3
tree0550c84bf6a38c3b14d543b1969a16da1188bfa7
parent365e1ec26d7e89a951ebd7851214f59f4aefdec0
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>
libavcodec/wavpack.c