Give nice message for failed assert.

Originally committed as revision 17283 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Ivan Kalvachev 2009-02-14 21:33:13 +00:00
parent 2d7b05601a
commit 9939841fe2
1 changed files with 6 additions and 1 deletions

View File

@ -76,7 +76,12 @@ int ff_xvmc_field_start(MpegEncContext*s, AVCodecContext *avctx)
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;