[FFmpeg-cvslog] r16845 - trunk/libavcodec/vc1dsp.c
lorenm
subversion
Wed Jan 28 12:12:20 CET 2009
Author: lorenm
Date: Wed Jan 28 12:12:19 2009
New Revision: 16845
Log:
fix an overflow in vc1 intra overlap filter
Modified:
trunk/libavcodec/vc1dsp.c
Modified: trunk/libavcodec/vc1dsp.c
==============================================================================
--- trunk/libavcodec/vc1dsp.c Wed Jan 28 09:50:10 2009 (r16844)
+++ trunk/libavcodec/vc1dsp.c Wed Jan 28 12:12:19 2009 (r16845)
@@ -45,8 +45,8 @@ static void vc1_v_overlap_c(uint8_t* src
d2 = (a - d + b - c + 4 - rnd) >> 3;
src[-2*stride] = a - d1;
- src[-stride] = b - d2;
- src[0] = c + d2;
+ src[-stride] = av_clip_uint8(b - d2);
+ src[0] = av_clip_uint8(c + d2);
src[stride] = d + d1;
src++;
rnd = !rnd;
@@ -70,8 +70,8 @@ static void vc1_h_overlap_c(uint8_t* src
d2 = (a - d + b - c + 4 - rnd) >> 3;
src[-2] = a - d1;
- src[-1] = b - d2;
- src[0] = c + d2;
+ src[-1] = av_clip_uint8(b - d2);
+ src[0] = av_clip_uint8(c + d2);
src[1] = d + d1;
src += stride;
rnd = !rnd;
More information about the ffmpeg-cvslog
mailing list