[vlc-commits] codec: ttml: no longer need to use resolution after rebase

Francois Cartegnie git at videolan.org
Tue Dec 26 10:43:12 CET 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Dec 26 10:19:51 2017 +0100| [1ee818f94cfa168f792d29d98a76feb565ed8c4d] | committer: Francois Cartegnie

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

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1ee818f94cfa168f792d29d98a76feb565ed8c4d
---

 modules/codec/ttml/substtml.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/modules/codec/ttml/substtml.c b/modules/codec/ttml/substtml.c
index 30a22cc2a5..1f6e2d7ff5 100644
--- a/modules/codec/ttml/substtml.c
+++ b/modules/codec/ttml/substtml.c
@@ -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;
 }



More information about the vlc-commits mailing list