Commit 12b15268 authored by iive's avatar iive

Give nice message for failed assert.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17283 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 2125980e
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment