Commit 9541c1e3 authored by iive's avatar iive

Clarify some assert usage.

They are not to check application supplied parameters.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17278 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent d30a9ac9
......@@ -285,6 +285,8 @@ void ff_xvmc_decode_mb(MpegEncContext *s)
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);
/*The above conditions should not be able to fail as long as this function is used
and following if() automatically call callback to free blocks. */
if (render->filled_mv_blocks_num >= render->total_number_of_mv_blocks)
......
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