summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleg Oshmyan <chortos@inbox.lv>2020-10-27 05:02:53 +0200
committerOleg Oshmyan <chortos@inbox.lv>2020-10-27 05:02:53 +0200
commit700e131c78e6c917369c02161c4c8e2408d963e5 (patch)
treee3d57ea94eedd0811f75dcc96bffd4c951e242be
parentafae19b2d265a84535b27c0d411710c4dc3dd7cb (diff)
downloadlibass-700e131c78e6c917369c02161c4c8e2408d963e5.tar.bz2
libass-700e131c78e6c917369c02161c4c8e2408d963e5.tar.xz
Fix \kf speed in anamorphic video
-rw-r--r--libass/ass_render.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libass/ass_render.c b/libass/ass_render.c
index fbe2765..559daf0 100644
--- a/libass/ass_render.c
+++ b/libass/ass_render.c
@@ -2417,7 +2417,8 @@ static void render_and_combine_glyphs(ASS_Renderer *render_priv,
}
if (info->effect_type == EF_KARAOKE_KF)
- info->effect_timing = d6_to_int(info->leftmost_x + info->effect_timing);
+ info->effect_timing = lround(d6_to_double(info->leftmost_x) +
+ d6_to_double(info->effect_timing) * render_priv->font_scale_x);
for (int j = 0; j < info->bitmap_count; j++) {
info->bitmaps[j].pos.x -= info->x;