diff options
author | Ivan Kalvachev <ikalvachev@gmail.com> | 2009-02-14 20:30:13 +0000 |
---|---|---|
committer | Ivan Kalvachev <ikalvachev@gmail.com> | 2009-02-14 20:30:13 +0000 |
commit | ae4dde76d3df36f5660664e94eff8a76b7aac6f7 (patch) | |
tree | 4a8f67f700073f62b49aa48675ef4ff798eda0bd /libavcodec/mpegvideo_xvmc.c | |
parent | e14ff1e6280352ad83456553275bab28eb65a2c9 (diff) | |
download | ffmpeg-ae4dde76d3df36f5660664e94eff8a76b7aac6f7.tar.gz |
Clarify some assert usage.
They are not to check application supplied parameters.
Originally committed as revision 17278 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpegvideo_xvmc.c')
-rw-r--r-- | libavcodec/mpegvideo_xvmc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/mpegvideo_xvmc.c b/libavcodec/mpegvideo_xvmc.c index cbb51c21e7..cc22a262c0 100644 --- a/libavcodec/mpegvideo_xvmc.c +++ b/libavcodec/mpegvideo_xvmc.c @@ -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) |