Mercurial > libavcodec.hg
changeset 8860:0617c9f594d0 libavcodec
Remove some useless parentheses.
author | diego |
---|---|
date | Sat, 14 Feb 2009 18:57:32 +0000 |
parents | bb358e5acde4 |
children | da23b389e856 |
files | mpegvideo_xvmc.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/mpegvideo_xvmc.c Sat Feb 14 18:51:17 2009 +0000 +++ b/mpegvideo_xvmc.c Sat Feb 14 18:57:32 2009 +0000 @@ -37,11 +37,11 @@ struct xvmc_render_state * render; render = (struct xvmc_render_state*)s->current_picture.data[2]; assert(render); - if (!render || (render->magic != AV_XVMC_RENDER_MAGIC)) { + if (!render || render->magic != AV_XVMC_RENDER_MAGIC) { assert(0); return;//make sure that this is a render packet } - s->block = (DCTELEM *)(render->data_blocks+(render->next_free_data_block_num)*64); + s->block = (DCTELEM *)(render->data_blocks + render->next_free_data_block_num * 64); } void ff_xvmc_pack_pblocks(MpegEncContext *s, int cbp) @@ -71,11 +71,11 @@ render = (struct xvmc_render_state*)s->current_picture.data[2]; assert(render); - if (!render || (render->magic != AV_XVMC_RENDER_MAGIC)) + if (!render || render->magic != AV_XVMC_RENDER_MAGIC) return -1;//make sure that this is render packet render->picture_structure = s->picture_structure; - render->flags = (s->first_field) ? 0 : XVMC_SECOND_FIELD; + render->flags = s->first_field ? 0 : XVMC_SECOND_FIELD; //make sure that all data is drawn by XVMC_end_frame assert(render->filled_mv_blocks_num == 0);