diff mpeg12.c @ 771:d4cc92144266 libavcodec

handle direct rendering buffer allocation failure
author michaelni
date Sun, 27 Oct 2002 00:02:23 +0000
parents cbe316f082bc
children dfaa1c45bd27
line wrap: on
line diff
--- a/mpeg12.c	Sat Oct 26 18:56:43 2002 +0000
+++ b/mpeg12.c	Sun Oct 27 00:02:23 2002 +0000
@@ -1581,7 +1581,8 @@
     /* start frame decoding */
     if (s->first_slice) {
         s->first_slice = 0;
-        MPV_frame_start(s, avctx);
+        if(MPV_frame_start(s, avctx) < 0)
+            return -1;
     }
 
     init_get_bits(&s->gb, buf, buf_size);