From 9e494ab77cdf519eb5de8056c00469c78bf8a7e8 Mon Sep 17 00:00:00 2001 From: Ivan Kalvachev Date: Sat, 14 Feb 2009 22:46:20 +0000 Subject: [PATCH] Check ff_xvmc_field_start() result in all cases. Originally committed as revision 17290 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/mpeg12.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c index 81c7342cf..68bde9bab 100644 --- a/libavcodec/mpeg12.c +++ b/libavcodec/mpeg12.c @@ -1648,7 +1648,8 @@ static int mpeg_field_start(MpegEncContext *s){ // MPV_frame_start will call this function too, // but we need to call it on every field if(s->avctx->xvmc_acceleration) - ff_xvmc_field_start(s,avctx); + if( ff_xvmc_field_start(s,avctx) < 0) + return -1; #endif return 0; -- 2.11.0