Commit 82608abe authored by lorenm's avatar lorenm

fix an overflow in vc1 intra overlap filter


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16845 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent f8109663
......@@ -45,8 +45,8 @@ static void vc1_v_overlap_c(uint8_t* src, int stride)
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, int stride)
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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment