Commit 9939841f authored by Ivan Kalvachev's avatar Ivan Kalvachev

Give nice message for failed assert.

Originally committed as revision 17283 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 2d7b0560
......@@ -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