[FFmpeg-cvslog] r9471 - in trunk/libavcodec: roqvideo.c roqvideoenc.c

vitor subversion
Thu Jul 5 05:01:53 CEST 2007


Author: vitor
Date: Thu Jul  5 05:01:53 2007
New Revision: 9471

Log:
Remove more useless parentheses.

Modified:
   trunk/libavcodec/roqvideo.c
   trunk/libavcodec/roqvideoenc.c

Modified: trunk/libavcodec/roqvideo.c
==============================================================================
--- trunk/libavcodec/roqvideo.c	(original)
+++ trunk/libavcodec/roqvideo.c	Thu Jul  5 05:01:53 2007
@@ -118,8 +118,8 @@ static inline void apply_motion_generic(
     for(cp = 0; cp < 3; cp++) {
         int outstride = ri->current_frame->linesize[cp];
         int instride  = ri->last_frame   ->linesize[cp];
-        block_copy(ri->current_frame->data[cp] + (y*outstride) + x,
-                   ri->last_frame->data[cp] + (my*instride) + mx,
+        block_copy(ri->current_frame->data[cp] + y*outstride + x,
+                   ri->last_frame->data[cp] + my*instride + mx,
                    outstride, instride, sz);
     }
 }

Modified: trunk/libavcodec/roqvideoenc.c
==============================================================================
--- trunk/libavcodec/roqvideoenc.c	(original)
+++ trunk/libavcodec/roqvideoenc.c	Thu Jul  5 05:01:53 2007
@@ -608,7 +608,7 @@ typedef struct
 /* NOTE: Typecodes must be spooled AFTER arguments!! */
 static void write_typecode(CodingSpool *s, uint8_t type)
 {
-    s->typeSpool |= ((type) & 3) << (14 - s->typeSpoolLength);
+    s->typeSpool |= (type & 3) << (14 - s->typeSpoolLength);
     s->typeSpoolLength += 2;
     if (s->typeSpoolLength == 16) {
         bytestream_put_le16(s->pout, s->typeSpool);




More information about the ffmpeg-cvslog mailing list