OSDN Git Service

add parenthesis, fix warning: qtrleenc.c:257: warning: suggest parentheses around...
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>
Thu, 31 Jan 2008 00:50:21 +0000 (00:50 +0000)
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>
Thu, 31 Jan 2008 00:50:21 +0000 (00:50 +0000)
Originally committed as revision 11685 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/qtrleenc.c

index 581a55b..2f41f3c 100644 (file)
@@ -254,7 +254,7 @@ static int encode_frame(QtrleEncContext *s, AVFrame *p, uint8_t *buf)
 
     bytestream_put_be32(&buf, 0);                         // CHUNK SIZE, patched later
 
-    if (start_line == 0 && end_line == s->avctx->height || start_line == s->avctx->height)
+    if ((start_line == 0 && end_line == s->avctx->height) || start_line == s->avctx->height)
         bytestream_put_be16(&buf, 0);                     // header
     else {
         bytestream_put_be16(&buf, 8);                     // header