comparison 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
comparison
equal deleted inserted replaced
8890:21e7e2e89379 8891:0b4d9fa01b59
1646 } 1646 }
1647 #if CONFIG_MPEG_XVMC_DECODER 1647 #if CONFIG_MPEG_XVMC_DECODER
1648 // MPV_frame_start will call this function too, 1648 // MPV_frame_start will call this function too,
1649 // but we need to call it on every field 1649 // but we need to call it on every field
1650 if(s->avctx->xvmc_acceleration) 1650 if(s->avctx->xvmc_acceleration)
1651 ff_xvmc_field_start(s,avctx); 1651 if( ff_xvmc_field_start(s,avctx) < 0)
1652 return -1;
1652 #endif 1653 #endif
1653 1654
1654 return 0; 1655 return 0;
1655 } 1656 }
1656 1657