changeset 8087:610976c39408

locale fix
author nexus
date Sun, 03 Nov 2002 17:20:58 +0000
parents 51cab3e229d4
children 59f4133fbab5
files libmpcodecs/vf_eq2.c
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf_eq2.c	Sun Nov 03 16:58:07 2002 +0000
+++ b/libmpcodecs/vf_eq2.c	Sun Nov 03 17:20:58 2002 +0000
@@ -19,6 +19,10 @@
 #include "mp_image.h"
 #include "vf.h"
 
+#ifdef USE_SETLOCALE
+#include <locale.h>
+#endif
+
 
 typedef struct vf_priv_s {
   unsigned char *buf;
@@ -219,7 +223,13 @@
   eq2->bright = 0.0;
 
   if (args != NULL) {
+#ifdef USE_SETLOCALE
+    setlocale( LC_NUMERIC, "C" );
+#endif
     sscanf (args, "%lf:%lf:%lf", &eq2->gamma, &eq2->contrast, &eq2->bright);
+#ifdef USE_SETLOCALE
+    setlocale( LC_NUMERIC, "" );
+#endif
   }
 
   create_lut (eq2);