changeset 8263:442ea8b6733c

Locale fix.
author rguyom
date Sun, 24 Nov 2002 06:23:50 +0000
parents 103a2758f9c5
children 1f3708389d0a
files libmpcodecs/vf_smartblur.c
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf_smartblur.c	Sun Nov 24 01:03:16 2002 +0000
+++ b/libmpcodecs/vf_smartblur.c	Sun Nov 24 06:23:50 2002 +0000
@@ -25,6 +25,10 @@
 #include "../config.h"
 #include "../mp_msg.h"
 
+#ifdef USE_SETLOCALE
+#include <locale.h>
+#endif
+
 #ifdef HAVE_MALLOC_H
 #include <malloc.h>
 #endif
@@ -230,6 +234,9 @@
 
 	if(args==NULL) return 0;
 	
+#ifdef USE_SETLOCALE
+    setlocale( LC_NUMERIC, "C" );
+#endif
 	e=sscanf(args, "%f:%f:%d:%f:%f:%d",
 		&vf->priv->luma.radius,
 		&vf->priv->luma.strength,
@@ -238,6 +245,9 @@
 		&vf->priv->chroma.strength,
 		&vf->priv->chroma.threshold
 		);
+#ifdef USE_SETLOCALE
+    setlocale( LC_NUMERIC, "" );
+#endif
 
 	vf->priv->luma.quality = vf->priv->chroma.quality= 3.0;