summaryrefslogtreecommitdiffstats
path: root/libmpcodecs/vf_unsharp.c
diff options
context:
space:
mode:
Diffstat (limited to 'libmpcodecs/vf_unsharp.c')
-rw-r--r--libmpcodecs/vf_unsharp.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libmpcodecs/vf_unsharp.c b/libmpcodecs/vf_unsharp.c
index f504d4dd36..7a2384cf18 100644
--- a/libmpcodecs/vf_unsharp.c
+++ b/libmpcodecs/vf_unsharp.c
@@ -27,6 +27,10 @@
#include "../mp_msg.h"
#include "../cpudetect.h"
+#ifdef USE_SETLOCALE
+#include <locale.h>
+#endif
+
#ifdef HAVE_MALLOC_H
#include <malloc.h>
#endif
@@ -265,7 +269,13 @@ static void parse( FilterParam *fp, char* args ) {
// parse amount
pos = strchr( pos+1, ':' );
+#ifdef USE_SETLOCALE
+ setlocale( LC_NUMERIC, "C" );
+#endif
fp->amount = ( pos && pos+1<max ) ? atof( pos+1 ) : 0;
+#ifdef USE_SETLOCALE
+ setlocale( LC_NUMERIC, "" );
+#endif
}
//===========================================================================//