diff options
author | Michael Niedermayer | 2012-10-03 01:52:29 +0200 |
---|---|---|
committer | Michael Niedermayer | 2012-10-03 01:52:29 +0200 |
commit | 6eed92a2b7977b7aa91554e9911106462681d242 (patch) | |
tree | 24f1b8273c315194fd33ee3486f9521e4d2cb75f /libavcodec | |
parent | 72f10d54734f3e5d004a6297e550aa7405059216 (diff) |
8svx: fix delta_decode cliping limits
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/8svx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/8svx.c b/libavcodec/8svx.c index 1b03ba1d4e..c034dd6974 100644 --- a/libavcodec/8svx.c +++ b/libavcodec/8svx.c @@ -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; } |