aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mpegvideo_xvmc.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2009-02-15 02:27:55 +0000
committerDiego Biurrun <diego@biurrun.de>2009-02-15 02:27:55 +0000
commit1333d8fd2012525a181f387dd4f7fbd66328f207 (patch)
tree0154ed4dd53c7f64fbfda4bcfd24eb8762e7ee2f /libavcodec/mpegvideo_xvmc.c
parenteb3b2ef91d222697e46871fe6efc5b452465b41a (diff)
downloadffmpeg-1333d8fd2012525a181f387dd4f7fbd66328f207.tar.gz
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
Diffstat (limited to 'libavcodec/mpegvideo_xvmc.c')
-rw-r--r--libavcodec/mpegvideo_xvmc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/mpegvideo_xvmc.c b/libavcodec/mpegvideo_xvmc.c
index dc5dd74ecb..0ec1f55d30 100644
--- a/libavcodec/mpegvideo_xvmc.c
+++ b/libavcodec/mpegvideo_xvmc.c
@@ -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");
}