mirror of
https://github.com/mpv-player/mpv
synced 2025-01-05 03:06:28 +01:00
Return from ass_start_frame immediately if the track is empty.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25541 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
3eb3ff7be8
commit
bf22a172e7
@ -2102,6 +2102,9 @@ static int ass_start_frame(ass_renderer_t *priv, ass_track_t* track, long long n
|
||||
|
||||
if (!priv->settings.frame_width && !priv->settings.frame_height)
|
||||
return 1; // library not initialized
|
||||
|
||||
if (track->n_events == 0)
|
||||
return 1; // nothing to do
|
||||
|
||||
frame_context.ass_priv = priv;
|
||||
frame_context.width = global_settings->frame_width;
|
||||
|
Loading…
Reference in New Issue
Block a user