diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-06-09 21:28:53 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-06-09 21:28:53 +0000 |
commit | 25e25617f6fbd9a8f4028fe796199dafae51ae6b (patch) | |
tree | 058c8ea29a9b4319f484619181cce76c2d5c51b6 /cmdutils.c | |
parent | db16e3ca6562121c5c9d87a66b2c646e3ad2cf81 (diff) | |
download | ffmpeg-25e25617f6fbd9a8f4028fe796199dafae51ae6b.tar.gz |
Make all the numeric options accept in input an expression which is
evaluated through av_strtod().
Fix roundup issue #551.
Originally committed as revision 23556 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'cmdutils.c')
-rw-r--r-- | cmdutils.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmdutils.c b/cmdutils.c index 2349b7052e..fcdebb2005 100644 --- a/cmdutils.c +++ b/cmdutils.c @@ -36,6 +36,7 @@ #include "libpostproc/postprocess.h" #include "libavutil/avstring.h" #include "libavutil/pixdesc.h" +#include "libavutil/eval.h" #include "libavcodec/opt.h" #include "cmdutils.h" #include "version.h" @@ -58,7 +59,7 @@ double parse_number_or_die(const char *context, const char *numstr, int type, do { char *tail; const char *error; - double d = strtod(numstr, &tail); + double d = av_strtod(numstr, &tail); if (*tail) error= "Expected number for %s but found: %s\n"; else if (d < min || d > max) |