Commit 8473f075 authored by Laurent Aimar's avatar Laurent Aimar

Fixed out of bound writes in grain filter for non mod 8 video.

parent 0ddec016
......@@ -241,7 +241,8 @@ static void PlaneFilter(filter_t *filter,
if (w >= BLEND_SIZE && h >= BLEND_SIZE)
sys->blend(dstp, dst->i_pitch, srcp, src->i_pitch, noise);
else
BlockBlend(dstp, dst->i_pitch, srcp, src->i_pitch, noise, w, h);
BlockBlend(dstp, dst->i_pitch, srcp, src->i_pitch, noise,
__MIN(w, BLEND_SIZE), __MIN(h, BLEND_SIZE));
}
}
if (sys->emms)
......
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