diff options
author | Ivan Kalvachev <ikalvachev@gmail.com> | 2009-02-14 18:45:44 +0000 |
---|---|---|
committer | Ivan Kalvachev <ikalvachev@gmail.com> | 2009-02-14 18:45:44 +0000 |
commit | 4742762f5d86fca487d906e6d8c54abbe5fee175 (patch) | |
tree | bdcbb19cc2c3feeca26bbec81719798bd9a8335f /libavcodec | |
parent | 78f9a8783067ee09db8d432a3d9248dfb7bb15ee (diff) | |
download | ffmpeg-4742762f5d86fca487d906e6d8c54abbe5fee175.tar.gz |
remove some useless ()
Originally committed as revision 17255 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/mpegvideo_xvmc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/mpegvideo_xvmc.c b/libavcodec/mpegvideo_xvmc.c index 2b88f7fa0b..3c160ea465 100644 --- a/libavcodec/mpegvideo_xvmc.c +++ b/libavcodec/mpegvideo_xvmc.c @@ -57,7 +57,7 @@ void ff_xvmc_pack_pblocks(MpegEncContext *s, int cbp) 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 @@ void ff_xvmc_decode_mb(MpegEncContext *s) 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 @@ void ff_xvmc_decode_mb(MpegEncContext *s) } //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++; |