[MPlayer-dev-eng] vf_eq2 (and other with float input) parse problem
Bohdan Horst
nexus at irc.pl
Fri Nov 1 12:37:47 CET 2002
language with "," in LC_NUMERIC:
-vop eq2=0.75 -> g=1.0
-vop eq2=0,75 -> g=1.0
with LC_NUMERIC set to "C"
-vop eq2=0,75 -> g=1.0
-vop eq2=0.75 -> g=0.75 (as expected)
probably same problem with all filters with float input
maybe there should be similar hack as in cfgparser.c ?
-----
#ifdef USE_SETLOCALE
setlocale(LC_NUMERIC, "C");
#endif
tmp_float = strtod(param, &endptr);
switch(*endptr) {
case ':':
case '/':
tmp_float /= strtod(endptr+1, &endptr);
default:
break;
}
#ifdef USE_SETLOCALE
setlocale(LC_NUMERIC, "");
#endif
------
(which also accept x/y value)
best regards
--
/ irl: Bohdan 'Nexus' Horst | irc: Nexus \
{----------------------v-------^---------------}
\ http://irc.pl/nexus | mailto: nexus at irc.pl /
More information about the MPlayer-dev-eng
mailing list