From 013cebfbe803049f66f227d6352b8334e6adea76 Mon Sep 17 00:00:00 2001
From: Ivan Kalvachev <ikalvachev@gmail.com>
Date: Sat, 14 Feb 2009 22:06:00 +0000
Subject: [PATCH] Return error instead of triggering assert.

Originally committed as revision 17287 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 libavcodec/mpegvideo_xvmc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/mpegvideo_xvmc.c b/libavcodec/mpegvideo_xvmc.c
index c96357b164c..2b936612994 100644
--- a/libavcodec/mpegvideo_xvmc.c
+++ b/libavcodec/mpegvideo_xvmc.c
@@ -80,7 +80,7 @@ int ff_xvmc_field_start(MpegEncContext*s, AVCodecContext *avctx)
         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;
-- 
GitLab