aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorIvan Kalvachev <ikalvachev@gmail.com>2009-02-14 21:33:13 +0000
committerIvan Kalvachev <ikalvachev@gmail.com>2009-02-14 21:33:13 +0000
commit9939841fe28bf096a94b14d2c52e5636ecca9422 (patch)
tree21dbfb4da65a4d8510e1295c18057a610d7feb2a /libavcodec
parent2d7b05601a5ab5296ee966bfefe608251c89e1d0 (diff)
downloadffmpeg-9939841fe28bf096a94b14d2c52e5636ecca9422.tar.gz
Give nice message for failed assert.
Originally committed as revision 17283 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/mpegvideo_xvmc.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/libavcodec/mpegvideo_xvmc.c b/libavcodec/mpegvideo_xvmc.c
index b05a49505f..ce57593833 100644
--- a/libavcodec/mpegvideo_xvmc.c
+++ b/libavcodec/mpegvideo_xvmc.c
@@ -76,7 +76,12 @@ int ff_xvmc_field_start(MpegEncContext*s, AVCodecContext *avctx)
render->picture_structure = s->picture_structure;
render->flags = s->first_field ? 0 : XVMC_SECOND_FIELD;
- assert(render->filled_mv_blocks_num == 0);
+ if(render->filled_mv_blocks_num){
+ av_log(avctx, AV_LOG_ERROR,
+ "Rendering surface contains %i unprocessed blocks\n",
+ render->filled_mv_blocks_num);
+ assert(0);
+ }
render->p_future_surface = NULL;
render->p_past_surface = NULL;