git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
4f1bb8a
)
make MPV_frame_start fail on get_buffer failer
author
Ivan Kalvachev
<ikalvachev@gmail.com>
Sat, 26 Jul 2003 23:31:13 +0000
(23:31 +0000)
committer
Ivan Kalvachev
<ikalvachev@gmail.com>
Sat, 26 Jul 2003 23:31:13 +0000
(23:31 +0000)
Originally committed as revision 2089 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/mpegvideo.c
patch
|
blob
|
history
diff --git
a/libavcodec/mpegvideo.c
b/libavcodec/mpegvideo.c
index
737cd0d
..
af6dd61
100644
(file)
--- 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];
}