From: Grigori Goronzy Date: Mon, 20 Jul 2009 22:04:24 +0000 (+0200) Subject: Animations: allow equal start and end time X-Git-Tag: 0.9.7~31 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1bbf325019a2ab0ead277cf1af8af6e63157e851;p=libass Animations: allow equal start and end time Do not set the end time of the animation to the end time of the event in case end time and start time specified in a \t tag are equal. This should sort out a problem introduced by commit 1f176b. --- diff --git a/libass/ass_render.c b/libass/ass_render.c index f86c73e..f2c137d 100644 --- a/libass/ass_render.c +++ b/libass/ass_render.c @@ -1572,11 +1572,11 @@ static char *parse_tag(ass_renderer_t *render_priv, char *p, double pwr) } if (cnt == 3) { v1 = v[0]; - v2 = (v[1] <= v1) ? render_priv->state.event->Duration : v[1]; + v2 = (v[1] < v1) ? render_priv->state.event->Duration : v[1]; v3 = v[2]; } else if (cnt == 2) { v1 = v[0]; - v2 = (v[1] <= v1) ? render_priv->state.event->Duration : v[1]; + v2 = (v[1] < v1) ? render_priv->state.event->Duration : v[1]; v3 = 1.; } else if (cnt == 1) { v1 = 0;