aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Kalvachev <ikalvachev@gmail.com>2003-07-26 23:31:13 +0000
committerIvan Kalvachev <ikalvachev@gmail.com>2003-07-26 23:31:13 +0000
commitf23a68dff367ef9a397dda17aaebf189934179b9 (patch)
tree32a17fa10e3f032b648803ef61c04655ebc4ac67
parent4f1bb8a9837c3820dbd46db9f659cab9ed5b2b13 (diff)
downloadffmpeg-f23a68dff367ef9a397dda17aaebf189934179b9.tar.gz
make MPV_frame_start fail on get_buffer failer
Originally committed as revision 2089 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/mpegvideo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index 737cd0d1c8..af6dd611e5 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@ -981,7 +981,8 @@ alloc:
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];
}