Mercurial > mplayer.hg
changeset 20875:ced1aa7b9e3d
Support \t with acceleration.
author | eugeni |
---|---|
date | Mon, 13 Nov 2006 16:49:32 +0000 |
parents | b6d87b58754f |
children | 0587328d9392 |
files | libass/ass_render.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libass/ass_render.c Mon Nov 13 16:35:15 2006 +0000 +++ b/libass/ass_render.c Mon Nov 13 16:49:32 2006 +0000 @@ -906,12 +906,14 @@ t1 = v1; t2 = v2; delta_t = v2 - v1; + if (v3 < 0.) + v3 = 0.; t = frame_context.time - render_context.event->Start; // FIXME: move to render_context if (t < t1) k = 0.; else if (t > t2) k = 1.; - else k = ((double)(t - t1)) / delta_t; + else k = pow(((double)(t - t1)) / delta_t, v3); while (*p == '\\') p = parse_tag(p, k); // maybe k*pwr ? no, specs forbid nested \t's skip_all(')'); // FIXME: better skip(')'), but much more tags support required