diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-10-29 21:07:45 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-10-29 21:07:45 +0100 |
commit | 15b1b0887466f5c9ab3185a8fb62ebe54c0ff01b (patch) | |
tree | d6861bb3492b6137a57128979a39ee26ac06c240 | |
parent | 249cc58c3ada7b6017d11e665cf3fa1850651a8d (diff) | |
download | ffmpeg-15b1b0887466f5c9ab3185a8fb62ebe54c0ff01b.tar.gz |
avutil/opt: fix flags check on non x86
This should fix several fate failures
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavutil/opt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/opt.c b/libavutil/opt.c index e00bd746d1..46f60aad0e 100644 --- a/libavutil/opt.c +++ b/libavutil/opt.c @@ -101,7 +101,7 @@ static int write_number(void *obj, const AVOption *o, void *dst, double num, int } if (o->type == AV_OPT_TYPE_FLAGS) { double d = num*intnum/den; - if (d < -1.5 || d > 0xFFFFFFFF+0.5 || (lrint(d*256) & 255)) { + if (d < -1.5 || d > 0xFFFFFFFF+0.5 || (llrint(d*256) & 255)) { av_log(obj, AV_LOG_ERROR, "Value %f for parameter '%s' is not a valid set of 32bit integer flags\n", num*intnum/den, o->name); |