summaryrefslogtreecommitdiffstats
path: root/libass/ass_bitmap.c
diff options
context:
space:
mode:
authorGrigori Goronzy <greg@blackbox>2010-08-01 22:23:25 +0200
committerGrigori Goronzy <greg@blackbox>2010-08-01 23:09:33 +0200
commit7415cacb871fce6e81e847efa78d110aa2fae4fb (patch)
treebe683abd3fbb9dcc0c0ab282554ddfa2a553925e /libass/ass_bitmap.c
parente3848fe12a7699434dd941245d9af646d49986b9 (diff)
downloadlibass-7415cacb871fce6e81e847efa78d110aa2fae4fb.tar.bz2
libass-7415cacb871fce6e81e847efa78d110aa2fae4fb.tar.xz
Check vector clip mask bounding box size
Similar to regular glyphs, check the bounding box of the clip mask and refrain from rendering humongous masks, which can take up considerably memory.
Diffstat (limited to 'libass/ass_bitmap.c')
-rw-r--r--libass/ass_bitmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libass/ass_bitmap.c b/libass/ass_bitmap.c
index 93f2aa8..9211a7c 100644
--- a/libass/ass_bitmap.c
+++ b/libass/ass_bitmap.c
@@ -165,7 +165,7 @@ static Bitmap *copy_bitmap(const Bitmap *src)
return dst;
}
-static int check_glyph_area(ASS_Library *library, FT_Glyph glyph)
+int check_glyph_area(ASS_Library *library, FT_Glyph glyph)
{
FT_BBox bbox;
long long dx, dy;