changeset 1384:18cdce49339e libavcodec

make MPV_frame_start fail on get_buffer failer
author iive
date Sat, 26 Jul 2003 23:31:13 +0000
parents ed8a6c3bc4db
children a16990d50fce
files mpegvideo.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mpegvideo.c	Sat Jul 26 23:21:30 2003 +0000
+++ b/mpegvideo.c	Sat Jul 26 23:31:13 2003 +0000
@@ -981,7 +981,8 @@
         if(s->current_picture_ptr)
             pic->coded_picture_number= s->current_picture_ptr->coded_picture_number+1;
         
-        alloc_picture(s, (Picture*)pic, 0);
+        if( alloc_picture(s, (Picture*)pic, 0) < 0)
+            return -1;
 
         s->current_picture_ptr= &s->picture[i];
     }