changeset 8856:e5cf06287032 libavcodec

remove some useless ()
author iive
date Sat, 14 Feb 2009 18:45:44 +0000
parents 6ce8ebfc9d86
children 9cd28fb52745
files mpegvideo_xvmc.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mpegvideo_xvmc.c	Sat Feb 14 18:25:41 2009 +0000
+++ b/mpegvideo_xvmc.c	Sat Feb 14 18:45:44 2009 +0000
@@ -57,7 +57,7 @@
     cbp <<= 12-mb_block_count;
     for (i = 0; i < mb_block_count; i++) {
         if (cbp & (1<<11)) {
-            s->pblocks[i] = (short *)(&s->block[(j++)]);
+            s->pblocks[i] = (short *)(&s->block[j++]);
         }else{
             s->pblocks[i] = NULL;
         }
@@ -246,7 +246,7 @@
 
     blocks_per_mb = 6;
     if (s->chroma_format >= 2) {
-        blocks_per_mb = 4 + (1 << (s->chroma_format));
+        blocks_per_mb = 4 + (1 << s->chroma_format);
     }
 
 //  calculate cbp
@@ -284,7 +284,7 @@
             }
 //copy blocks only if the codec doesn't support pblocks reordering
             if (s->avctx->xvmc_acceleration == 1) {
-                memcpy(&render->data_blocks[(render->next_free_data_block_num)*64],
+                memcpy(&render->data_blocks[render->next_free_data_block_num*64],
                        s->pblocks[i],sizeof(short)*8*8);
             }
             render->next_free_data_block_num++;