Skip to content

Commit

Permalink
8svx: fix delta_decode cliping limits
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
  • Loading branch information
michaelni committed Oct 2, 2012
1 parent 72f10d5 commit 6eed92a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libavcodec/8svx.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit 6eed92a

Please sign in to comment.