Commit 15b1b088 authored by Michael Niedermayer's avatar Michael Niedermayer

avutil/opt: fix flags check on non x86

This should fix several fate failures
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 249cc58c
...@@ -101,7 +101,7 @@ static int write_number(void *obj, const AVOption *o, void *dst, double num, int ...@@ -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) { if (o->type == AV_OPT_TYPE_FLAGS) {
double d = num*intnum/den; 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, av_log(obj, AV_LOG_ERROR,
"Value %f for parameter '%s' is not a valid set of 32bit integer flags\n", "Value %f for parameter '%s' is not a valid set of 32bit integer flags\n",
num*intnum/den, o->name); num*intnum/den, o->name);
......
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