aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Kalvachev <ikalvachev@gmail.com>2009-02-14 22:06:00 +0000
committerIvan Kalvachev <ikalvachev@gmail.com>2009-02-14 22:06:00 +0000
commit013cebfbe803049f66f227d6352b8334e6adea76 (patch)
treed61008cf71bdfb451371ed6584a73ba20f33a52a
parent930efaf41084dd30a277f8342bea52df9c1b62fc (diff)
downloadffmpeg-013cebfbe803049f66f227d6352b8334e6adea76.tar.gz
Return error instead of triggering assert.
Originally committed as revision 17287 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/mpegvideo_xvmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpegvideo_xvmc.c b/libavcodec/mpegvideo_xvmc.c
index c96357b164..2b93661299 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;