You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02: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:
committed by
Carl Eugen Hoyos
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 &&
|
if (o->type != AV_OPT_TYPE_FLAGS &&
|
||||||
(!den || o->max * den < num * intnum || o->min * den > num * intnum)) {
|
(!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",
|
av_log(obj, AV_LOG_ERROR, "Value %f for parameter '%s' out of range [%g - %g]\n",
|
||||||
num, o->name, o->min, o->max);
|
num, o->name, o->min, o->max);
|
||||||
return AVERROR(ERANGE);
|
return AVERROR(ERANGE);
|
||||||
|
Reference in New Issue
Block a user