Commit 9e494ab7 authored by Ivan Kalvachev's avatar Ivan Kalvachev

Check ff_xvmc_field_start() result in all cases.

Originally committed as revision 17290 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 24b1583a
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment