[MPlayer-cvslog] r25541 - trunk/libass/ass_render.c
eugeni
subversion at mplayerhq.hu
Sun Dec 30 02:03:05 CET 2007
Author: eugeni
Date: Sun Dec 30 02:03:05 2007
New Revision: 25541
Log:
Return from ass_start_frame immediately if the track is empty.
Modified:
trunk/libass/ass_render.c
Modified: trunk/libass/ass_render.c
==============================================================================
--- trunk/libass/ass_render.c (original)
+++ trunk/libass/ass_render.c Sun Dec 30 02:03:05 2007
@@ -2102,6 +2102,9 @@ static int ass_start_frame(ass_renderer_
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;
More information about the MPlayer-cvslog
mailing list