[FFmpeg-cvslog] r11685 - trunk/libavcodec/qtrleenc.c

bcoudurier subversion
Thu Jan 31 01:50:21 CET 2008


Author: bcoudurier
Date: Thu Jan 31 01:50:21 2008
New Revision: 11685

Log:
add parenthesis, fix warning: qtrleenc.c:257: warning: suggest parentheses around && within ||

Modified:
   trunk/libavcodec/qtrleenc.c

Modified: trunk/libavcodec/qtrleenc.c
==============================================================================
--- trunk/libavcodec/qtrleenc.c	(original)
+++ trunk/libavcodec/qtrleenc.c	Thu Jan 31 01:50:21 2008
@@ -254,7 +254,7 @@ static int encode_frame(QtrleEncContext 
 
     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




More information about the ffmpeg-cvslog mailing list