diff svq1.c @ 771:d4cc92144266 libavcodec

handle direct rendering buffer allocation failure
author michaelni
date Sun, 27 Oct 2002 00:02:23 +0000
parents 45e8f39fda50
children eacc2dd8fd9d
line wrap: on
line diff
--- a/svq1.c	Sat Oct 26 18:56:43 2002 +0000
+++ b/svq1.c	Sun Oct 27 00:02:23 2002 +0000
@@ -1085,7 +1085,8 @@
 
   result = svq1_decode_frame_header (&s->gb, s);
   
-  MPV_frame_start(s, avctx);
+  if(MPV_frame_start(s, avctx) < 0)
+      return -1;
 
   if (result != 0)
   {