# HG changeset patch # User diego # Date 1253471388 0 # Node ID 1b2ef85867a9a35e584de49f931b51333793049e # Parent 77eea98ffac3351cb7251f133163184962bdc5ba Add parentheses to logical expression to avoid the warning: libavcodec/utils.c:476: warning: suggest parentheses around && within || diff -r 77eea98ffac3 -r 1b2ef85867a9 utils.c --- a/utils.c Sun Sep 20 18:21:54 2009 +0000 +++ b/utils.c Sun Sep 20 18:29:48 2009 +0000 @@ -472,8 +472,9 @@ avcodec_set_dimensions(avctx, avctx->width, avctx->height); #define SANE_NB_CHANNELS 128U - if((avctx->coded_width||avctx->coded_height) && avcodec_check_dimensions(avctx,avctx->coded_width,avctx->coded_height) || - avctx->channels > SANE_NB_CHANNELS) { + if (((avctx->coded_width || avctx->coded_height) + && avcodec_check_dimensions(avctx, avctx->coded_width, avctx->coded_height)) + || avctx->channels > SANE_NB_CHANNELS) { av_freep(&avctx->priv_data); ret = AVERROR(EINVAL); goto end;