summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrigori Goronzy <greg@hein>2009-08-20 16:41:11 +0200
committerGrigori Goronzy <greg@hein>2009-08-20 16:41:11 +0200
commit96226455142018927a96c676980a90206d60714e (patch)
tree341b21bdfe36a18b85b784015825fc4447a4a289
parentc2950d9825ee861e4c7541c1568785a044a5d448 (diff)
downloadlibass-96226455142018927a96c676980a90206d60714e.tar.bz2
libass-96226455142018927a96c676980a90206d60714e.tar.xz
Clip vector blending: do not copy last row padding
Do not copy the padding on the last row into the new buffer since we cannot rely on the padding actually existing; might fix a segfault in some obscure cases.
-rw-r--r--libass/ass_render.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libass/ass_render.c b/libass/ass_render.c
index 253d409..bcb3f95 100644
--- a/libass/ass_render.c
+++ b/libass/ass_render.c
@@ -592,7 +592,7 @@ static void blend_vector_clip(ASS_Renderer *render_priv,
free_list_add(render_priv, nbuffer);
// Blend together
- memcpy(nbuffer, abuffer, as * ah);
+ memcpy(nbuffer, abuffer, as * (ah - 1) + aw);
for (y = 0; y < h; y++)
for (x = 0; x < w; x++) {
apos = (atop + y) * as + aleft + x;