Browse Source

Replace assert in ff_xvmc_field_end() by av_log call at level AV_LOG_ERROR.

Originally committed as revision 17308 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Diego Biurrun 17 years ago
parent
commit
1333d8fd20
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      libavcodec/mpegvideo_xvmc.c

+ 3
- 2
libavcodec/mpegvideo_xvmc.c View File

@@ -290,13 +290,14 @@ void ff_xvmc_decode_mb(MpegEncContext *s)
}
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");
}

Loading…
Cancel
Save