mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-04 19:07:55 +00:00
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
This commit is contained in:
parent
db16e3ca65
commit
25e25617f6
2 changed files with 10 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue