changeset 8888:5b7c6ebb4a36 libavcodec

Return error instead of triggering assert.
author iive
date Sat, 14 Feb 2009 22:06:00 +0000
parents c4f2086d74f8
children b4838c71d52a
files mpegvideo_xvmc.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mpegvideo_xvmc.c	Sat Feb 14 21:52:44 2009 +0000
+++ b/mpegvideo_xvmc.c	Sat Feb 14 22:06:00 2009 +0000
@@ -80,7 +80,7 @@
         av_log(avctx, AV_LOG_ERROR,
                "Rendering surface contains %i unprocessed blocks\n",
                render->filled_mv_blocks_num);
-        assert(0);
+        return -1;
     }
 
     render->p_future_surface = NULL;