changeset 8912:63e989c76ed2 libavcodec

Revert 17308. The above commit makes ff_xvmc_decode_mb to output one log entry for each decoded MB, causing massive slowdown.
author iive
date Sun, 15 Feb 2009 07:55:39 +0000
parents 28b706b75b00
children c9d7846799ac
files mpegvideo_xvmc.c
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mpegvideo_xvmc.c	Sun Feb 15 06:29:43 2009 +0000
+++ b/mpegvideo_xvmc.c	Sun Feb 15 07:55:39 2009 +0000
@@ -290,14 +290,13 @@
     }
     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);
-    /* The above condition should not be able to fail as long as this function
+    /* The above conditions should not be able to fail as long as this function
      * is used and the following 'if ()' automatically calls a callback to free
      * blocks. */
 
 
     if (render->filled_mv_blocks_num >= render->total_number_of_mv_blocks)
         ff_draw_horiz_band(s, 0, 0);
-    else
-        av_log(s->avctx, AV_LOG_ERROR, "Not all blocks have been processed.\n");
 }