mirror of https://github.com/mpv-player/mpv
Fix last commit.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19657 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
d9f0a7b4ad
commit
8ed46df92f
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue