aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mpeg12.c
diff options
context:
space:
mode:
authorIvan Kalvachev <ikalvachev@gmail.com>2009-02-14 22:46:20 +0000
committerIvan Kalvachev <ikalvachev@gmail.com>2009-02-14 22:46:20 +0000
commit9e494ab77cdf519eb5de8056c00469c78bf8a7e8 (patch)
tree45958a375a904e9cbb01caed8cb218957b0898c5 /libavcodec/mpeg12.c
parent24b1583a6264cdb4211ee0e3f0f26275d49d60d0 (diff)
downloadffmpeg-9e494ab77cdf519eb5de8056c00469c78bf8a7e8.tar.gz
Check ff_xvmc_field_start() result in all cases.
Originally committed as revision 17290 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpeg12.c')
-rw-r--r--libavcodec/mpeg12.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c
index 81c7342cfe..68bde9babb 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;