Commit 72482363 authored by Paul B Mahol's avatar Paul B Mahol

avfilter/f_drawgraph: use av_sscanf()

parent c834f52c
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#include "float.h" #include "float.h"
#include "libavutil/avstring.h"
#include "libavutil/eval.h" #include "libavutil/eval.h"
#include "libavutil/intreadwrite.h" #include "libavutil/intreadwrite.h"
#include "libavutil/opt.h" #include "libavutil/opt.h"
...@@ -215,7 +216,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) ...@@ -215,7 +216,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
if (!e || !e->value) if (!e || !e->value)
continue; continue;
if (sscanf(e->value, "%f", &vf) != 1) if (av_sscanf(e->value, "%f", &vf) != 1)
continue; continue;
vf = av_clipf(vf, s->min, s->max); vf = av_clipf(vf, s->min, s->max);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment