]> granicus.if.org Git - libass/commitdiff
Fix last commit.
authoreugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>
Sun, 3 Sep 2006 17:36:29 +0000 (17:36 +0000)
committereugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>
Sun, 3 Sep 2006 17:36:29 +0000 (17:36 +0000)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19657 b3059339-0415-0410-9bf9-f77b7e298cf2

libass/ass_render.c

index aba49ec3ad50dd8f73daa2d40c2ea72b255f94ec..62a484920a92f389abb6b2337d220749b4e645ed 100644 (file)
@@ -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;
        }