changeset 19651:8135cbd2dbc5

Fix last commit.
author eugeni
date Sun, 03 Sep 2006 17:36:29 +0000
parents d89179256560
children 2c016957360a
files libass/ass_render.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libass/ass_render.c	Sun Sep 03 17:25:04 2006 +0000
+++ b/libass/ass_render.c	Sun Sep 03 17:36:29 2006 +0000
@@ -1514,7 +1514,7 @@
 	int alignment, halign, valign;
 	int device_x = 0, device_y = 0;
 
-	if (!event->Style) {
+	if (event->Style >= frame_context.track->n_styles) {
 		mp_msg(MSGT_GLOBAL, MSGL_WARN, "No style found!\n");
 		return 1;
 	}