changeset 8879:34ac2b326ba8 libavcodec

Clarify some assert usage. They are not to check application supplied parameters.
author iive
date Sat, 14 Feb 2009 20:30:13 +0000
parents 2184b34803e5
children d8f9926e684d
files mpegvideo_xvmc.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mpegvideo_xvmc.c	Sat Feb 14 20:07:52 2009 +0000
+++ b/mpegvideo_xvmc.c	Sat Feb 14 20:30:13 2009 +0000
@@ -285,6 +285,8 @@
 
     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)