Revision 5a78bfbd libavcodec/h264.c

View differences:

libavcodec/h264.c
1584 1584
 * gets the chroma qp.
1585 1585
 */
1586 1586
static inline int get_chroma_qp(H264Context *h, int t, int qscale){
1587
    return h->pps.chroma_qp_table[t][qscale & 0xff];
1587
    return h->pps.chroma_qp_table[t][qscale];
1588 1588
}
1589 1589

  
1590 1590
//FIXME need to check that this does not overflow signed 32 bit for low qp, I am not sure, it's very close
......
7337 7337
build_qp_table(PPS *pps, int t, int index)
7338 7338
{
7339 7339
    int i;
7340
    for(i = 0; i < 255; i++)
7341
        pps->chroma_qp_table[t][i & 0xff] = chroma_qp[av_clip(i + index, 0, 51)];
7340
    for(i = 0; i < 52; i++)
7341
        pps->chroma_qp_table[t][i] = chroma_qp[av_clip(i + index, 0, 51)];
7342 7342
}
7343 7343

  
7344 7344
static inline int decode_picture_parameter_set(H264Context *h, int bit_length){

Also available in: Unified diff