Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-11-01 06:34:15 +0300
committerGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-11-02 14:50:18 +0300
commit430f943e63cc6da2236a1c98be5b23aa649e72e1 (patch)
tree3f54c3857f23054a41928be6a430d14016e9c8e4 /libavfilter/vf_frei0r.c
parent23dffc7b54c2c46502a42fe263b5ff99522173ea (diff)
avfilter/vf_frei0r: use av_strtod instead of strtod for added flexibility
This converts the usage of strtod to av_strtod in order to unify and make number parsing more consistent. This also adds support for SI postfixes. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Diffstat (limited to 'libavfilter/vf_frei0r.c')
-rw-r--r--libavfilter/vf_frei0r.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavfilter/vf_frei0r.c b/libavfilter/vf_frei0r.c
index 0a98fead32..9aa3edcf4a 100644
--- a/libavfilter/vf_frei0r.c
+++ b/libavfilter/vf_frei0r.c
@@ -30,6 +30,7 @@
#include "config.h"
#include "libavutil/avstring.h"
#include "libavutil/common.h"
+#include "libavutil/eval.h"
#include "libavutil/imgutils.h"
#include "libavutil/internal.h"
#include "libavutil/mathematics.h"
@@ -104,7 +105,7 @@ static int set_param(AVFilterContext *ctx, f0r_param_info_t info, int index, cha
break;
case F0R_PARAM_DOUBLE:
- val.d = strtod(param, &tail);
+ val.d = av_strtod(param, &tail);
if (*tail || val.d == HUGE_VAL)
goto fail;
break;