diff h263dec.c @ 771:d4cc92144266 libavcodec

handle direct rendering buffer allocation failure
author michaelni
date Sun, 27 Oct 2002 00:02:23 +0000
parents 339db642859d
children 21d400c67fc5
line wrap: on
line diff
--- a/h263dec.c	Sat Oct 26 18:56:43 2002 +0000
+++ b/h263dec.c	Sun Oct 27 00:02:23 2002 +0000
@@ -457,7 +457,8 @@
             s->next_p_frame_damaged=0;
     }
 
-    MPV_frame_start(s, avctx);
+    if(MPV_frame_start(s, avctx) < 0)
+        return -1;
 
 #ifdef DEBUG
     printf("qscale=%d\n", s->qscale);