# HG changeset patch # User michael # Date 1266017313 0 # Node ID af73d215879d1a3f6f9c1182138e5d83ea969a52 # Parent 31bdf73a03303d9e48b2a969c2ce399acf0f4a42 Dont drop B frames without last_picture. Fixes issue1722 diff -r 31bdf73a0330 -r af73d215879d h264.c --- 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){