[FFmpeg-devel] [RFC]lavu/opt: Use && instead of * in boolean expression
Aaron Levinson
alevinsn at aracnet.com
Fri May 5 04:12:33 EEST 2017
On 5/4/2017 4:32 PM, Carl Eugen Hoyos wrote:
> Hi!
>
> It may be better to disable the warning.
>
> Carl Eugen
>
> - num = den ? num * intnum / den : (num * intnum ? INFINITY : NAN);
> + num = den ? num * intnum / den : (num && intnum ? INFINITY : NAN);
In order to preserve the original logic, why not do the following:
+ num = den ? num * intnum / den : (((num * intnum) != 0) ? INFINITY : NAN);
Aaron Levinson
More information about the ffmpeg-devel
mailing list