[vlc-commits] Jpeg: use locale-indepent strtof

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:18:58 2016 +0100| [3e77fa781e33367f787e91d9c0fae4633d8bc7c4] | committer: Jean-Baptiste Kempf

Jpeg: use locale-indepent strtof

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

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

diff --git a/modules/codec/jpeg.c b/modules/codec/jpeg.c
index be4a800..62fdcf6 100644
--- a/modules/codec/jpeg.c
+++ b/modules/codec/jpeg.c
@@ -27,6 +27,8 @@
 #include <vlc_common.h>
 #include <vlc_plugin.h>
 #include <vlc_codec.h>
+#include <vlc_charset.h>
+
 #include <jpeglib.h>
 #include <setjmp.h>
 
@@ -258,7 +260,7 @@ static bool getRDFFloat(const char *psz_rdf, float *out, const char *psz_var)
     if (unlikely(p_end == NULL || p_end == p_start + 1))
         return false;
 
-    *out = strtof(p_start + varlen, NULL);
+    *out = us_strtof(p_start + varlen, NULL);
     return true;
 }
 



More information about the vlc-commits mailing list