Revision db8cb47d

View differences:

libavcodec/h264.c
917 917
        if(decode_nal_units(h, s->avctx->extradata, s->avctx->extradata_size) < 0)
918 918
            return -1;
919 919
    }
920
    if(h->sps.bitstream_restriction_flag && s->avctx->has_b_frames < h->sps.num_reorder_frames){
921
        s->avctx->has_b_frames = h->sps.num_reorder_frames;
922
        s->low_delay = 0;
923
    }
920 924

  
921 925
    return 0;
922 926
}

Also available in: Unified diff