Commit e750da52 authored by Laurent Aimar's avatar Laurent Aimar Committed by Jean-Baptiste Kempf

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

(cherry picked from commit 8473f0753678b6ddf507a0cd9f6043704464b0e7)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent d0ebc826
...@@ -241,7 +241,8 @@ static void PlaneFilter(filter_t *filter, ...@@ -241,7 +241,8 @@ static void PlaneFilter(filter_t *filter,
if (w >= BLEND_SIZE && h >= BLEND_SIZE) if (w >= BLEND_SIZE && h >= BLEND_SIZE)
sys->blend(dstp, dst->i_pitch, srcp, src->i_pitch, noise); sys->blend(dstp, dst->i_pitch, srcp, src->i_pitch, noise);
else 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) 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