changeset 8891:0b4d9fa01b59 libavcodec

Check ff_xvmc_field_start() result in all cases.
author iive
date Sat, 14 Feb 2009 22:46:20 +0000
parents 21e7e2e89379
children 649c595b8c2f
files mpeg12.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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;