Commit f23a68df authored by Ivan Kalvachev's avatar Ivan Kalvachev

make MPV_frame_start fail on get_buffer failer

Originally committed as revision 2089 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 4f1bb8a9
...@@ -981,7 +981,8 @@ alloc: ...@@ -981,7 +981,8 @@ alloc:
if(s->current_picture_ptr) if(s->current_picture_ptr)
pic->coded_picture_number= s->current_picture_ptr->coded_picture_number+1; 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]; s->current_picture_ptr= &s->picture[i];
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment