summaryrefslogtreecommitdiffstats
path: root/libmpcodecs/vf_eq2.c
diff options
context:
space:
mode:
authornexus <nexus@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-11-03 17:20:58 +0000
committernexus <nexus@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-11-03 17:20:58 +0000
commitbdc4ec9153b5034e78992bdda78265a7bf0fd7ec (patch)
tree0fd017060d65abd1ab4ef67705f7fbed5973935a /libmpcodecs/vf_eq2.c
parent867f5281963858b430b708447167c4f5846b6508 (diff)
downloadmpv-bdc4ec9153b5034e78992bdda78265a7bf0fd7ec.tar.bz2
mpv-bdc4ec9153b5034e78992bdda78265a7bf0fd7ec.tar.xz
locale fix
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8088 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs/vf_eq2.c')
-rw-r--r--libmpcodecs/vf_eq2.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libmpcodecs/vf_eq2.c b/libmpcodecs/vf_eq2.c
index 4cd4ed75c9..8f35f1ea45 100644
--- a/libmpcodecs/vf_eq2.c
+++ b/libmpcodecs/vf_eq2.c
@@ -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 @@ int open (vf_instance_t *vf, char *args)
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);