Skip to content
Snippets Groups Projects
Commit 6eed92a2 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

8svx: fix delta_decode cliping limits

parent 72f10d54
No related branches found
No related tags found
No related merge requests found
...@@ -74,9 +74,9 @@ static int delta_decode(int8_t *dst, const uint8_t *src, int src_size, ...@@ -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;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment