mirror of
https://github.com/librempeg/librempeg
synced 2024-11-23 03:28:27 +00:00
lavu/opt: Use "&&" instead of "*" in boolean expression.
Fixes the following warning: libavutil/opt.c:101:47: warning: '*' in boolean context, suggest '&&' instead
This commit is contained in:
parent
c2d155e11e
commit
cd01b3cbcf
@ -98,7 +98,7 @@ static int write_number(void *obj, const AVOption *o, void *dst, double num, int
|
||||
{
|
||||
if (o->type != AV_OPT_TYPE_FLAGS &&
|
||||
(!den || o->max * den < num * intnum || o->min * den > num * intnum)) {
|
||||
num = den ? num * intnum / den : (num * intnum ? INFINITY : NAN);
|
||||
num = den ? num * intnum / den : (num && intnum ? INFINITY : NAN);
|
||||
av_log(obj, AV_LOG_ERROR, "Value %f for parameter '%s' out of range [%g - %g]\n",
|
||||
num, o->name, o->min, o->max);
|
||||
return AVERROR(ERANGE);
|
||||
|
Loading…
Reference in New Issue
Block a user