Mercurial > libavcodec.hg
diff mpeg12.c @ 8891:0b4d9fa01b59 libavcodec
Check ff_xvmc_field_start() result in all cases.
| author | iive |
|---|---|
| date | Sat, 14 Feb 2009 22:46:20 +0000 |
| parents | f8042554d4c8 |
| children | 82545932a261 |
line wrap: on
line diff
--- a/mpeg12.c Sat Feb 14 22:22:55 2009 +0000 +++ b/mpeg12.c Sat Feb 14 22:46:20 2009 +0000 @@ -1648,7 +1648,8 @@ // 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;
