Commit 1738e8c6 authored by iive's avatar iive

Check ff_xvmc_field_start() result in all cases.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17290 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent f3e4367c
...@@ -1648,7 +1648,8 @@ static int mpeg_field_start(MpegEncContext *s){ ...@@ -1648,7 +1648,8 @@ static int mpeg_field_start(MpegEncContext *s){
// MPV_frame_start will call this function too, // MPV_frame_start will call this function too,
// but we need to call it on every field // but we need to call it on every field
if(s->avctx->xvmc_acceleration) if(s->avctx->xvmc_acceleration)
ff_xvmc_field_start(s,avctx); if( ff_xvmc_field_start(s,avctx) < 0)
return -1;
#endif #endif
return 0; 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