Mercurial > libavcodec.hg
changeset 8884:a054304f57d4 libavcodec
Give nice message for failed assert.
author | iive |
---|---|
date | Sat, 14 Feb 2009 21:33:13 +0000 |
parents | 62342da1ec78 |
children | d3f806fb5f71 |
files | mpegvideo_xvmc.c |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mpegvideo_xvmc.c Sat Feb 14 21:00:26 2009 +0000 +++ b/mpegvideo_xvmc.c Sat Feb 14 21:33:13 2009 +0000 @@ -76,7 +76,12 @@ render->picture_structure = s->picture_structure; render->flags = s->first_field ? 0 : XVMC_SECOND_FIELD; - assert(render->filled_mv_blocks_num == 0); + if(render->filled_mv_blocks_num){ + av_log(avctx, AV_LOG_ERROR, + "Rendering surface contains %i unprocessed blocks\n", + render->filled_mv_blocks_num); + assert(0); + } render->p_future_surface = NULL; render->p_past_surface = NULL;