[FFmpeg-devel] [PATCH]lavc/utvideo: Use "&" instead of "&&" in expressions with "~"
Ronald S. Bultje
rsbultje at gmail.com
Sun Oct 8 02:58:15 EEST 2017
On Sat, Oct 7, 2017 at 7:05 PM, Carl Eugen Hoyos <ceffmpeg at gmail.com> wrote:
> Attached patch silences two warnings when compiling with gcc-7:
> libavcodec/utvideodec.c:242:107: warning: ‘~’ on a boolean expression
> const int cmask = c->interlaced ? ~(1 + 2 * (!plane_no &&
> c->avctx->pix_fmt == AV_PIX_FMT_YUV420P)) : ~(!plane_no &&
> c->avctx->pix_fmt == AV_PIX_FMT_YUV420P);
> Please comment, Carl Eugen
I personally think the warning is dumb... But I guess that's just me.
My First Pony C. But we're not these kind of developers.)
More information about the ffmpeg-devel