[FFmpeg-cvslog] r17259 - trunk/libavcodec/mpegvideo_xvmc.c
diego
subversion
Sat Feb 14 19:57:33 CET 2009
Author: diego
Date: Sat Feb 14 19:57:32 2009
New Revision: 17259
Log:
Remove some useless parentheses.
Modified:
trunk/libavcodec/mpegvideo_xvmc.c
Modified: trunk/libavcodec/mpegvideo_xvmc.c
==============================================================================
--- trunk/libavcodec/mpegvideo_xvmc.c Sat Feb 14 19:51:17 2009 (r17258)
+++ trunk/libavcodec/mpegvideo_xvmc.c Sat Feb 14 19:57:32 2009 (r17259)
@@ -37,11 +37,11 @@ void ff_xvmc_init_block(MpegEncContext *
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 @@ int ff_xvmc_field_start(MpegEncContext*s
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);
More information about the ffmpeg-cvslog
mailing list