[vlc-commits] TTML: use locale-independent strtof for tts:fontSize

Jean-Baptiste Kempf git at videolan.org
Mon Nov 14 21:24:08 CET 2016


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Nov 14 21:23:39 2016 +0100| [f96a013b439ab6f82de3cbf01ec2167b5d784ad1] | committer: Jean-Baptiste Kempf

TTML: use locale-independent strtof for tts:fontSize

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

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

diff --git a/modules/codec/substtml.c b/modules/codec/substtml.c
index 40d78cd..9986f29 100644
--- a/modules/codec/substtml.c
+++ b/modules/codec/substtml.c
@@ -32,6 +32,7 @@
 #include <vlc_xml.h>
 #include <vlc_stream.h>
 #include <vlc_text_style.h>
+#include <vlc_charset.h>
 
 #include "substext.h"
 
@@ -342,7 +343,7 @@ static ttml_style_t* ParseTTMLStyle( decoder_t *p_dec, xml_reader_t* p_reader, c
         else if( !strcasecmp( "tts:fontSize", attr ) )
         {
             char* psz_end = NULL;
-            float size = strtof( val, &psz_end );
+            float size = us_strtof( val, &psz_end );
             if( *psz_end == '%' )
                 p_ttml_style->font_style->f_font_relsize = size;
             else



More information about the vlc-commits mailing list