changeset 25513:d7ab7fda755a

Return from ass_start_frame immediately if the track is empty.
author eugeni
date Sun, 30 Dec 2007 01:03:05 +0000
parents 8af257a401d4
children 8b945798b8f7
files libass/ass_render.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libass/ass_render.c	Sat Dec 29 13:56:38 2007 +0000
+++ b/libass/ass_render.c	Sun Dec 30 01:03:05 2007 +0000
@@ -2102,6 +2102,9 @@
 
 	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;