mirror of https://git.ffmpeg.org/ffmpeg.git
8svx: fix delta_decode cliping limits
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
72f10d5473
commit
6eed92a2b7
|
@ -74,9 +74,9 @@ static int delta_decode(int8_t *dst, const uint8_t *src, int src_size,
|
||||||
|
|
||||||
while (n--) {
|
while (n--) {
|
||||||
uint8_t d = *src++;
|
uint8_t d = *src++;
|
||||||
val = av_clip(val + table[d & 0x0f], -127, 128);
|
val = av_clip(val + table[d & 0x0f], -128, 127);
|
||||||
*dst++ = val;
|
*dst++ = val;
|
||||||
val = av_clip(val + table[d >> 4] , -127, 128);
|
val = av_clip(val + table[d >> 4] , -128, 127);
|
||||||
*dst++ = val;
|
*dst++ = val;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue