Revision 33e00731

View differences:

libavcodec/h264.c
3911 3911
    h->slice_type= slice_type;
3912 3912

  
3913 3913
    s->pict_type= h->slice_type; // to make a few old func happy, it's wrong though
3914
    if (s->pict_type == B_TYPE && s->last_picture_ptr == NULL) {
3915
        av_log(h->s.avctx, AV_LOG_ERROR,
3916
               "B picture before any references, skipping\n");
3917
        return -1;
3918
    }
3914 3919

  
3915 3920
    pps_id= get_ue_golomb(&s->gb);
3916 3921
    if(pps_id>=MAX_PPS_COUNT){

Also available in: Unified diff