Browse Source

make MPV_frame_start fail on get_buffer failer

Originally committed as revision 2089 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Ivan Kalvachev 22 years ago
parent
commit
f23a68dff3
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavcodec/mpegvideo.c

+ 2
- 1
libavcodec/mpegvideo.c View File

@@ -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…
Cancel
Save