Mercurial > libavcodec.hg
comparison mpegvideo_xvmc.c @ 8884:a054304f57d4 libavcodec
Give nice message for failed assert.
author | iive |
---|---|
date | Sat, 14 Feb 2009 21:33:13 +0000 |
parents | f8042554d4c8 |
children | d3f806fb5f71 |
comparison
equal
deleted
inserted
replaced
8883:62342da1ec78 | 8884:a054304f57d4 |
---|---|
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 assert(render->filled_mv_blocks_num == 0); | 79 if(render->filled_mv_blocks_num){ |
80 av_log(avctx, AV_LOG_ERROR, | |
81 "Rendering surface contains %i unprocessed blocks\n", | |
82 render->filled_mv_blocks_num); | |
83 assert(0); | |
84 } | |
80 | 85 |
81 render->p_future_surface = NULL; | 86 render->p_future_surface = NULL; |
82 render->p_past_surface = NULL; | 87 render->p_past_surface = NULL; |
83 | 88 |
84 switch(s->pict_type) { | 89 switch(s->pict_type) { |