Commit 1ee818f9 authored by François Cartegnie's avatar François Cartegnie 🤞

codec: ttml: no longer need to use resolution after rebase

parent b73e9de8
......@@ -455,8 +455,7 @@ 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_ctx->i_cell_resolution_v * TTML_LINE_TO_HEIGHT_RATIO);
p_text_style->f_font_relsize = len.i_value;
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