mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
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--) {
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user