changeset 10201:1b2ef85867a9 libavcodec

Add parentheses to logical expression to avoid the warning: libavcodec/utils.c:476: warning: suggest parentheses around && within ||
author diego
date Sun, 20 Sep 2009 18:29:48 +0000
parents 77eea98ffac3
children d0456fd306d2
files utils.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;