1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-09-06 08:08:58 +02:00

Check ff_xvmc_field_start() result in all cases.

Originally committed as revision 17290 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Ivan Kalvachev 2009-02-14 22:46:20 +00:00
parent 24b1583a62
commit 9e494ab77c

View File

@ -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;