[FFmpeg-cvslog] 8svx: fix delta_decode cliping limits
Michael Niedermayer
git at videolan.org
Wed Oct 3 01:56:10 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Oct 3 01:52:29 2012 +0200| [6eed92a2b7977b7aa91554e9911106462681d242] | committer: Michael Niedermayer
8svx: fix delta_decode cliping limits
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6eed92a2b7977b7aa91554e9911106462681d242
---
libavcodec/8svx.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/8svx.c b/libavcodec/8svx.c
index 1b03ba1..c034dd6 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;
}
More information about the ffmpeg-cvslog
mailing list