[FFmpeg-cvslog] r17283 - trunk/libavcodec/mpegvideo_xvmc.c
iive
subversion
Sat Feb 14 22:33:13 CET 2009
Author: iive
Date: Sat Feb 14 22:33:13 2009
New Revision: 17283
Log:
Give nice message for failed assert.
Modified:
trunk/libavcodec/mpegvideo_xvmc.c
Modified: trunk/libavcodec/mpegvideo_xvmc.c
==============================================================================
--- trunk/libavcodec/mpegvideo_xvmc.c Sat Feb 14 22:00:26 2009 (r17282)
+++ trunk/libavcodec/mpegvideo_xvmc.c Sat Feb 14 22:33:13 2009 (r17283)
@@ -76,7 +76,12 @@ int ff_xvmc_field_start(MpegEncContext*s
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;
More information about the ffmpeg-cvslog
mailing list