Mercurial > libavcodec.hg
comparison mpegvideo.c @ 1384:18cdce49339e libavcodec
make MPV_frame_start fail on get_buffer failer
author | iive |
---|---|
date | Sat, 26 Jul 2003 23:31:13 +0000 |
parents | f07e17427140 |
children | da0b3a50d209 |
comparison
equal
deleted
inserted
replaced
1383:ed8a6c3bc4db | 1384:18cdce49339e |
---|---|
979 pic->reference= s->pict_type != B_TYPE ? 3 : 0; | 979 pic->reference= s->pict_type != B_TYPE ? 3 : 0; |
980 | 980 |
981 if(s->current_picture_ptr) | 981 if(s->current_picture_ptr) |
982 pic->coded_picture_number= s->current_picture_ptr->coded_picture_number+1; | 982 pic->coded_picture_number= s->current_picture_ptr->coded_picture_number+1; |
983 | 983 |
984 alloc_picture(s, (Picture*)pic, 0); | 984 if( alloc_picture(s, (Picture*)pic, 0) < 0) |
985 return -1; | |
985 | 986 |
986 s->current_picture_ptr= &s->picture[i]; | 987 s->current_picture_ptr= &s->picture[i]; |
987 } | 988 } |
988 | 989 |
989 s->current_picture_ptr->pict_type= s->pict_type; | 990 s->current_picture_ptr->pict_type= s->pict_type; |