Mercurial > libavcodec.hg
changeset 11135:af73d215879d libavcodec
Dont drop B frames without last_picture.
Fixes issue1722
author | michael |
---|---|
date | Fri, 12 Feb 2010 23:28:33 +0000 |
parents | 31bdf73a0330 |
children | a0c52e951a29 |
files | h264.c |
diffstat | 1 files changed, 0 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/h264.c Fri Feb 12 22:01:42 2010 +0000 +++ b/h264.c Fri Feb 12 23:28:33 2010 +0000 @@ -1715,11 +1715,6 @@ h->slice_type_nos= slice_type & 3; s->pict_type= h->slice_type; // to make a few old functions happy, it's wrong though - if (s->pict_type == FF_B_TYPE && s0->last_picture_ptr == NULL) { - av_log(h->s.avctx, AV_LOG_ERROR, - "B picture before any references, skipping\n"); - return -1; - } pps_id= get_ue_golomb(&s->gb); if(pps_id>=MAX_PPS_COUNT){