Commit e35008a2 authored by diego's avatar diego

Replace assert in ff_xvmc_field_end() by av_log call at level AV_LOG_ERROR.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17308 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 35933f23
...@@ -290,13 +290,14 @@ void ff_xvmc_decode_mb(MpegEncContext *s) ...@@ -290,13 +290,14 @@ void ff_xvmc_decode_mb(MpegEncContext *s)
} }
render->filled_mv_blocks_num++; render->filled_mv_blocks_num++;
assert(render->filled_mv_blocks_num <= render->total_number_of_mv_blocks);
assert(render->next_free_data_block_num <= render->total_number_of_data_blocks); assert(render->next_free_data_block_num <= render->total_number_of_data_blocks);
/* The above conditions should not be able to fail as long as this function /* The above condition should not be able to fail as long as this function
* is used and the following 'if ()' automatically calls a callback to free * is used and the following 'if ()' automatically calls a callback to free
* blocks. */ * blocks. */
if (render->filled_mv_blocks_num >= render->total_number_of_mv_blocks) if (render->filled_mv_blocks_num >= render->total_number_of_mv_blocks)
ff_draw_horiz_band(s, 0, 0); ff_draw_horiz_band(s, 0, 0);
else
av_log(s->avctx, AV_LOG_ERROR, "Not all blocks have been processed.\n");
} }
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