Skip to content

Commit 6eed92a

Browse files
committed
8svx: fix delta_decode cliping limits
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
1 parent 72f10d5 commit 6eed92a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libavcodec/8svx.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ static int delta_decode(int8_t *dst, const uint8_t *src, int src_size,
7474

7575
while (n--) {
7676
uint8_t d = *src++;
77-
val = av_clip(val + table[d & 0x0f], -127, 128);
77+
val = av_clip(val + table[d & 0x0f], -128, 127);
7878
*dst++ = val;
79-
val = av_clip(val + table[d >> 4] , -127, 128);
79+
val = av_clip(val + table[d >> 4] , -128, 127);
8080
*dst++ = val;
8181
}
8282

0 commit comments

Comments
 (0)