Return error instead of triggering assert.
authorIvan Kalvachev <ikalvachev@gmail.com>
Sat, 14 Feb 2009 22:06:00 +0000 (22:06 +0000)
committerIvan Kalvachev <ikalvachev@gmail.com>
Sat, 14 Feb 2009 22:06:00 +0000 (22:06 +0000)
Originally committed as revision 17287 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/mpegvideo_xvmc.c

index c96357b..2b93661 100644 (file)
@@ -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;