8svx: fix delta_decode cliping limits

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-10-03 01:52:29 +02:00
parent 72f10d5473
commit 6eed92a2b7
1 changed files with 2 additions and 2 deletions

View File

@ -74,9 +74,9 @@ static int delta_decode(int8_t *dst, const uint8_t *src, int src_size,
while (n--) {
uint8_t d = *src++;
val = av_clip(val + table[d & 0x0f], -127, 128);
val = av_clip(val + table[d & 0x0f], -128, 127);
*dst++ = val;
val = av_clip(val + table[d >> 4] , -127, 128);
val = av_clip(val + table[d >> 4] , -128, 127);
*dst++ = val;
}