diff options
author | Grigori Goronzy <greg@hein> | 2009-08-20 16:41:11 +0200 |
---|---|---|
committer | Grigori Goronzy <greg@hein> | 2009-08-20 16:41:11 +0200 |
commit | 96226455142018927a96c676980a90206d60714e (patch) | |
tree | 341b21bdfe36a18b85b784015825fc4447a4a289 /libass/ass_render.c | |
parent | c2950d9825ee861e4c7541c1568785a044a5d448 (diff) | |
download | libass-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.
Diffstat (limited to 'libass/ass_render.c')
-rw-r--r-- | libass/ass_render.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libass/ass_render.c b/libass/ass_render.c index 253d4093..bcb3f95d 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; |