# HG changeset patch # User diego # Date 1234664875 0 # Node ID 1206da4b90b1d02495ae1125d681dceb4d24a9e1 # Parent ac0ad123e3f0b85c04637affd031db5bfb48344a Replace assert in ff_xvmc_field_end() by av_log call at level AV_LOG_ERROR. diff -r ac0ad123e3f0 -r 1206da4b90b1 mpegvideo_xvmc.c --- a/mpegvideo_xvmc.c Sun Feb 15 02:17:48 2009 +0000 +++ b/mpegvideo_xvmc.c Sun Feb 15 02:27:55 2009 +0000 @@ -290,13 +290,14 @@ } 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 conditions should not be able to fail as long as this function + /* The above condition 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"); }