comparison mpegvideo_xvmc.c @ 8885:d3f806fb5f71 libavcodec

cosmetics: K&R style
author diego
date Sat, 14 Feb 2009 21:49:48 +0000
parents a054304f57d4
children f873e2b1ac7f
comparison
equal deleted inserted replaced
8884:a054304f57d4 8885:d3f806fb5f71
74 return -1; // make sure that this is a render packet 74 return -1; // make sure that this is a render packet
75 75
76 render->picture_structure = s->picture_structure; 76 render->picture_structure = s->picture_structure;
77 render->flags = s->first_field ? 0 : XVMC_SECOND_FIELD; 77 render->flags = s->first_field ? 0 : XVMC_SECOND_FIELD;
78 78
79 if(render->filled_mv_blocks_num){ 79 if (render->filled_mv_blocks_num) {
80 av_log(avctx, AV_LOG_ERROR, 80 av_log(avctx, AV_LOG_ERROR,
81 "Rendering surface contains %i unprocessed blocks\n", 81 "Rendering surface contains %i unprocessed blocks\n",
82 render->filled_mv_blocks_num); 82 render->filled_mv_blocks_num);
83 assert(0); 83 assert(0);
84 } 84 }
85 85
86 render->p_future_surface = NULL; 86 render->p_future_surface = NULL;
87 render->p_past_surface = NULL; 87 render->p_past_surface = NULL;
290 render->filled_mv_blocks_num++; 290 render->filled_mv_blocks_num++;
291 291
292 assert(render->filled_mv_blocks_num <= render->total_number_of_mv_blocks); 292 assert(render->filled_mv_blocks_num <= render->total_number_of_mv_blocks);
293 assert(render->next_free_data_block_num <= render->total_number_of_data_blocks); 293 assert(render->next_free_data_block_num <= render->total_number_of_data_blocks);
294 /*The above conditions should not be able to fail as long as this function is used 294 /*The above conditions should not be able to fail as long as this function is used
295 and following if() automatically call callback to free blocks. */ 295 and following 'if ()' automatically call callback to free blocks. */
296 296
297 297
298 if (render->filled_mv_blocks_num >= render->total_number_of_mv_blocks) 298 if (render->filled_mv_blocks_num >= render->total_number_of_mv_blocks)
299 ff_draw_horiz_band(s, 0, 0); 299 ff_draw_horiz_band(s, 0, 0);
300 } 300 }