summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-09-03 17:36:29 +0000
committereugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-09-03 17:36:29 +0000
commit959013d794716739c300d853ef89c96e7c271c6f (patch)
tree9d4bd1e32fc89e369831dc628bd7cb158f8ccd97
parentcee575f93edf30bd1662cae126a27fe667039756 (diff)
downloadlibass-959013d794716739c300d853ef89c96e7c271c6f.tar.bz2
libass-959013d794716739c300d853ef89c96e7c271c6f.tar.xz
Fix last commit.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19657 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--libass/ass_render.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libass/ass_render.c b/libass/ass_render.c
index aba49ec3..62a48492 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;
}