Revision 8b38d107

View differences:

libavcodec/h264_cabac.c
1688 1688
                val= -((val + 1)>>1);
1689 1689
            h->last_qscale_diff = val;
1690 1690
            s->qscale += val;
1691
        if(((unsigned)s->qscale) > 51){
1692
            if(s->qscale<0) s->qscale+= 52;
1693
            else            s->qscale-= 52;
1694
        }
1695
        h->chroma_qp[0] = get_chroma_qp(h, 0, s->qscale);
1696
        h->chroma_qp[1] = get_chroma_qp(h, 1, s->qscale);
1691
            if(((unsigned)s->qscale) > 51){
1692
                if(s->qscale<0) s->qscale+= 52;
1693
                else            s->qscale-= 52;
1694
            }
1695
            h->chroma_qp[0] = get_chroma_qp(h, 0, s->qscale);
1696
            h->chroma_qp[1] = get_chroma_qp(h, 1, s->qscale);
1697 1697
        }else
1698 1698
            h->last_qscale_diff=0;
1699 1699

  

Also available in: Unified diff