# HG changeset patch # User eugeni # Date 1157304989 0 # Node ID 8135cbd2dbc591ec3a3c4a170e7805a7908e18b5 # Parent d89179256560e31a5005a5599416e0a9652949b7 Fix last commit. diff -r d89179256560 -r 8135cbd2dbc5 libass/ass_render.c --- 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; }