Revision b712fb67 libavcodec/h264.c

View differences:

libavcodec/h264.c
3697 3697
    if(h->sps.poc_type==0){
3698 3698
        const int max_poc_lsb= 1<<h->sps.log2_max_poc_lsb;
3699 3699

  
3700
        if(h->nal_unit_type == NAL_IDR_SLICE){
3701
             h->prev_poc_msb=
3702
             h->prev_poc_lsb= 0;
3703
        }
3704

  
3700 3705
        if     (h->poc_lsb < h->prev_poc_lsb && h->prev_poc_lsb - h->poc_lsb >= max_poc_lsb/2)
3701 3706
            h->poc_msb = h->prev_poc_msb + max_poc_lsb;
3702 3707
        else if(h->poc_lsb > h->prev_poc_lsb && h->prev_poc_lsb - h->poc_lsb < -max_poc_lsb/2)
......
6946 6951
            cur->reference = 1;
6947 6952

  
6948 6953
        for(i=0; h->delayed_pic[i]; i++)
6949
            if(h->delayed_pic[i]->key_frame)
6954
            if(h->delayed_pic[i]->key_frame || h->delayed_pic[i]->poc==0)
6950 6955
                cross_idr = 1;
6951 6956

  
6952 6957
        out = h->delayed_pic[0];

Also available in: Unified diff