Fix last commit.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19657 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
eugeni 2006-09-03 17:36:29 +00:00
parent d9f0a7b4ad
commit 8ed46df92f
1 changed files with 1 additions and 1 deletions

View File

@ -1514,7 +1514,7 @@ static int ass_render_event(ass_event_t* event, event_images_t* event_images)
int alignment, halign, valign; int alignment, halign, valign;
int device_x = 0, device_y = 0; 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"); mp_msg(MSGT_GLOBAL, MSGL_WARN, "No style found!\n");
return 1; return 1;
} }