diff options
author | Ivan Kalvachev <ikalvachev@gmail.com> | 2009-02-14 22:46:20 +0000 |
---|---|---|
committer | Ivan Kalvachev <ikalvachev@gmail.com> | 2009-02-14 22:46:20 +0000 |
commit | 9e494ab77cdf519eb5de8056c00469c78bf8a7e8 (patch) | |
tree | 45958a375a904e9cbb01caed8cb218957b0898c5 /libavcodec/mpeg12.c | |
parent | 24b1583a6264cdb4211ee0e3f0f26275d49d60d0 (diff) | |
download | ffmpeg-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.c | 3 |
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; |