diff options
author | Oleg Oshmyan <chortos@inbox.lv> | 2020-08-16 23:29:44 +0300 |
---|---|---|
committer | Oleg Oshmyan <chortos@inbox.lv> | 2020-09-19 17:51:11 +0300 |
commit | 9a0b7b4351ff504a530bd3d00241f4ee0a39832b (patch) | |
tree | 7fed39e049b116c0d01f8f1c99dab1e7dab01854 /libass | |
parent | bac2852ff70604b705a1d2e47f7f39f20f38e0a7 (diff) | |
download | libass-9a0b7b4351ff504a530bd3d00241f4ee0a39832b.tar.bz2 libass-9a0b7b4351ff504a530bd3d00241f4ee0a39832b.tar.xz |
Don't halve nonempty line height even if wholly invisible
VSFilter compatibility: VSFilter does no special handling
of invisible control characters and sees the line as nonempty.
Diffstat (limited to 'libass')
-rw-r--r-- | libass/ass_render.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libass/ass_render.c b/libass/ass_render.c index 1efbcd0..ffef117 100644 --- a/libass/ass_render.c +++ b/libass/ass_render.c @@ -1540,7 +1540,7 @@ static void measure_text(ASS_Renderer *render_priv) max_desc = FFMAX(max_desc, cur->desc); max_border_y = FFMAX(max_border_y, cur->border_y); max_border_x = FFMAX(max_border_x, cur->border_x); - if (cur->symbol != '\n' && cur->symbol != 0) + if (cur->symbol != '\n') scale = 1.0 / 64; } assert(cur_line == text_info->n_lines - 1); |