mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
make MPV_frame_start fail on get_buffer failer
Originally committed as revision 2089 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
4f1bb8a983
commit
f23a68dff3
@ -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];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user