From 8884b918984bfe8d72a43a087dd14fce1cdf2a2b Mon Sep 17 00:00:00 2001 From: Reimar Döffinger Date: Sat, 12 Jul 2008 09:23:37 +0000 Subject: 100l, fix MS ADPCM decoding for e.g. http://samples.mplayerhq.hu/mov/qtaudio/surge-2-16-L-ms02.mov First coefficient array must be unsigned to fit in 8 bits Originally committed as revision 14175 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/adpcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec') diff --git a/libavcodec/adpcm.c b/libavcodec/adpcm.c index f37c10e0f5..a9a8f74d9b 100644 --- a/libavcodec/adpcm.c +++ b/libavcodec/adpcm.c @@ -85,7 +85,7 @@ static const int AdaptationTable[] = { 768, 614, 512, 409, 307, 230, 230, 230 }; -static const int8_t AdaptCoeff1[] = { +static const uint8_t AdaptCoeff1[] = { 64, 128, 0, 48, 60, 115, 98 }; -- cgit v1.2.3