Commit 0cd78ca4 authored by François Cartegnie's avatar François Cartegnie 🤞

codec: ttml: use resolution after rebase

That what happens when you're fed with broken files

partial revert of 58033bc6
parent 538a42ba
......@@ -455,7 +455,8 @@ static void ComputeTTMLStyles( ttml_context_t *p_ctx, const vlc_dictionary_t *p_
p_text_style->f_font_relsize = 100.0 * len.i_value /
(p_ctx->i_cell_resolution_v * TTML_LINE_TO_HEIGHT_RATIO);
else if( len.unit == TTML_UNIT_PERCENT )
p_text_style->f_font_relsize = len.i_value;
p_text_style->f_font_relsize = len.i_value /
(p_ctx->i_cell_resolution_v * TTML_LINE_TO_HEIGHT_RATIO);
else if( len.unit == TTML_UNIT_PIXELS )
p_text_style->i_font_size = len.i_value;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment