changeset 5205:922bb0564bd3 libavcodec

Remove more useless parentheses.
author vitor
date Thu, 05 Jul 2007 03:01:53 +0000
parents 1c3baf4323bb
children 02dd5e0d7e46
files roqvideo.c roqvideoenc.c
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/roqvideo.c	Tue Jul 03 09:55:56 2007 +0000
+++ b/roqvideo.c	Thu Jul 05 03:01:53 2007 +0000
@@ -118,8 +118,8 @@
     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);
     }
 }
--- a/roqvideoenc.c	Tue Jul 03 09:55:56 2007 +0000
+++ b/roqvideoenc.c	Thu Jul 05 03:01:53 2007 +0000
@@ -608,7 +608,7 @@
 /* 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);