summaryrefslogtreecommitdiffstats
path: root/libass/ass_render.c
diff options
context:
space:
mode:
authorGrigori Goronzy <greg@blackbox>2009-07-21 00:04:24 +0200
committerGrigori Goronzy <greg@blackbox>2009-07-21 00:04:24 +0200
commit1bbf325019a2ab0ead277cf1af8af6e63157e851 (patch)
tree19ae71b5ff2d4e5b88db652af806a7147cc8fcea /libass/ass_render.c
parent2f74c6713dccee2b14b81a9c21731b83e181f31d (diff)
downloadlibass-1bbf325019a2ab0ead277cf1af8af6e63157e851.tar.bz2
libass-1bbf325019a2ab0ead277cf1af8af6e63157e851.tar.xz
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.
Diffstat (limited to 'libass/ass_render.c')
-rw-r--r--libass/ass_render.c4
1 files changed, 2 insertions, 2 deletions
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;