[vlc-commits] codec: ttml: don't round up font size

Francois Cartegnie git at videolan.org
Tue Dec 26 23:47:45 CET 2017


vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sun Dec 24 20:44:04 2017 +0100| [2cca731572380a514c6cd871923adc965199305c] | committer: Francois Cartegnie

codec: ttml: don't round up font size

(cherry picked from commit 9890a5578da129321d829741ca5b00a7f875a7ac)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=2cca731572380a514c6cd871923adc965199305c
---

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

diff --git a/modules/codec/ttml/substtml.c b/modules/codec/ttml/substtml.c
index 096d7a3ee2..1f6e2d7ff5 100644
--- a/modules/codec/ttml/substtml.c
+++ b/modules/codec/ttml/substtml.c
@@ -457,7 +457,7 @@ static void ComputeTTMLStyles( ttml_context_t *p_ctx, const vlc_dictionary_t *p_
     else if( len.unit == TTML_UNIT_PERCENT )
         p_text_style->f_font_relsize = len.i_value;
     else if( len.unit == TTML_UNIT_PIXELS )
-        p_text_style->i_font_size = (int)( len.i_value + 0.5 );
+        p_text_style->i_font_size = len.i_value;
 }
 
 static void FillTTMLStyle( const char *psz_attr, const char *psz_val,



More information about the vlc-commits mailing list