wavpack: Don't shift minclip/maxclip
authorDerek Buitenhuis <derek.buitenhuis@gmail.com>
Thu, 23 Feb 2012 15:55:35 +0000 (10:55 -0500)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Sat, 25 Feb 2012 19:50:27 +0000 (20:50 +0100)
commit9f82cbf7c11b2eca98a38fc9f1ca3a2ba1066a36
treec3209d34dcb334a30079cf47e71d60490768f3e1
parentdcde8e1c901851c95fbefa322118198eead96fc7
wavpack: Don't shift minclip/maxclip

Since we are clipping before we shift the values to
16 or 32 bits, we should not shift the min/max clip
values to compensate.

Fixes 8 and 24 bit lossy decoding.

Fixes ticket #871.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
(cherry picked from commit 480b133e6f79c470aff0f84d9ed3648d37c32b03)
libavcodec/wavpack.c