[MPlayer-cvslog] r20232 - trunk/libass/ass_render.c
reimar
subversion at mplayerhq.hu
Sun Oct 15 15:03:43 CEST 2006
Author: reimar
Date: Sun Oct 15 15:03:43 2006
New Revision: 20232
Modified:
trunk/libass/ass_render.c
Log:
Fix crash because of last_glyph < first_glyph, probably caused by first line
only consisting of '\n'
Modified: trunk/libass/ass_render.c
==============================================================================
--- trunk/libass/ass_render.c (original)
+++ trunk/libass/ass_render.c Sun Oct 15 15:03:43 2006
@@ -1724,7 +1724,7 @@
glyph_info_t* first_glyph = text_info.glyphs + last_break + 1;
glyph_info_t* last_glyph = text_info.glyphs + i - 1;
- while ((last_glyph >= first_glyph) && ((last_glyph->symbol == '\n') || (last_glyph->symbol == 0)))
+ while ((last_glyph > first_glyph) && ((last_glyph->symbol == '\n') || (last_glyph->symbol == 0)))
last_glyph --;
width = last_glyph->pos.x + last_glyph->bbox.xMax - first_glyph->pos.x - first_glyph->bbox.xMin;
More information about the MPlayer-cvslog
mailing list