diff rv10.c @ 771:d4cc92144266 libavcodec

handle direct rendering buffer allocation failure
author michaelni
date Sun, 27 Oct 2002 00:02:23 +0000
parents 25d7fb7c89be
children eacc2dd8fd9d
line wrap: on
line diff
--- a/rv10.c	Sat Oct 26 18:56:43 2002 +0000
+++ b/rv10.c	Sun Oct 27 00:02:23 2002 +0000
@@ -416,7 +416,8 @@
     }
 
     if (s->mb_x == 0 && s->mb_y == 0) {
-        MPV_frame_start(s, avctx);
+        if(MPV_frame_start(s, avctx) < 0)
+            return -1;
     }
 
 #ifdef DEBUG