[FFmpeg-cvslog] r17278 - trunk/libavcodec/mpegvideo_xvmc.c
iive
subversion
Sat Feb 14 21:30:13 CET 2009
Author: iive
Date: Sat Feb 14 21:30:13 2009
New Revision: 17278
Log:
Clarify some assert usage.
They are not to check application supplied parameters.
Modified:
trunk/libavcodec/mpegvideo_xvmc.c
Modified: trunk/libavcodec/mpegvideo_xvmc.c
==============================================================================
--- trunk/libavcodec/mpegvideo_xvmc.c Sat Feb 14 21:07:52 2009 (r17277)
+++ trunk/libavcodec/mpegvideo_xvmc.c Sat Feb 14 21:30:13 2009 (r17278)
@@ -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)
More information about the ffmpeg-cvslog
mailing list