From 8ed46df92fd8ba6d687db6bbac2dde36dff67a5c Mon Sep 17 00:00:00 2001 From: eugeni Date: Sun, 3 Sep 2006 17:36:29 +0000 Subject: Fix last commit. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19657 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libass/ass_render.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libass') diff --git a/libass/ass_render.c b/libass/ass_render.c index aba49ec3ad..62a484920a 100644 --- a/libass/ass_render.c +++ b/libass/ass_render.c @@ -1514,7 +1514,7 @@ static int ass_render_event(ass_event_t* event, event_images_t* event_images) 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; } -- cgit v1.2.3