Mercurial > libavcodec.hg
changeset 1484:a2930ee10a6b libavcodec
hurry_up fix?
author | michaelni |
---|---|
date | Sat, 27 Sep 2003 00:02:29 +0000 |
parents | 8e7d8112de29 |
children | d7bb818768c5 |
files | mpeg12.c |
diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mpeg12.c Sat Sep 27 00:01:46 2003 +0000 +++ b/mpeg12.c Sat Sep 27 00:02:29 2003 +0000 @@ -2453,9 +2453,11 @@ /* find start next code */ start_code = find_start_code(&buf_ptr, buf_end); if (start_code < 0){ - if (slice_end(avctx, picture)) { - if(s2->last_picture_ptr) //FIXME merge with the stuff in mpeg_decode_slice - *data_size = sizeof(AVPicture); + if(s2->pict_type != B_TYPE || avctx->hurry_up==0){ + if (slice_end(avctx, picture)) { + if(s2->last_picture_ptr) //FIXME merge with the stuff in mpeg_decode_slice + *data_size = sizeof(AVPicture); + } } return FFMAX(0, buf_ptr - buf - s2->parse_context.last_index); }