libavcodec/h264.c:2066: error: Buffer Overrun L2
  Offset: [0, 57] (⇐ [0, 6] + [0, 51]) Size: 6.

libavcodec/h264.c:2062:13: <Offset trace>
2060.             continue;
2061. 
2062.         for(q=0; q<52; q++){
                  ^
2063.             int shift = ff_div6[q] + 2;
2064.             int idx = ff_rem6[q];

libavcodec/h264.c:2062:13: Assignment
2060.             continue;
2061. 
2062.         for(q=0; q<52; q++){
                  ^
2063.             int shift = ff_div6[q] + 2;
2064.             int idx = ff_rem6[q];

libavcodec/h264.c:2048:1: <Length trace>
2046. }
2047. 
2048. static void init_dequant4_coeff_table(H264Context *h){
      ^
2049.     int i,j,q,x;
2050.     const int transpose = (h->s.dsp.h264_idct_add != ff_h264_idct_add_c); //FIXME ugly

libavcodec/h264.c:2048:1: Parameter `*h->dequant4_coeff[*]`
2046. }
2047. 
2048. static void init_dequant4_coeff_table(H264Context *h){
      ^
2049.     int i,j,q,x;
2050.     const int transpose = (h->s.dsp.h264_idct_add != ff_h264_idct_add_c); //FIXME ugly

libavcodec/h264.c:2066:17: Array access: Offset: [0, 57] (⇐ [0, 6] + [0, 51]) Size: 6
2064.             int idx = ff_rem6[q];
2065.             for(x=0; x<16; x++)
2066.                 h->dequant4_coeff[i][q][transpose ? (x>>2)|((x<<2)&0xF) : x] =
                      ^
2067.                     ((uint32_t)dequant4_coeff_init[idx][(x&1) + ((x>>2)&1)] *
2068.                     h->pps.scaling_matrix4[i][x]) << shift;

static void init_dequant4_coeff_table(H264Context *h){
    int i,j,q,x;
    const int transpose = (h->s.dsp.h264_idct_add != ff_h264_idct_add_c);
    for(i=0; i<6; i++ ){
        h->dequant4_coeff[i] = h->dequant4_buffer[i];
        for(j=0; j<i; j++){
            if(!memcmp(h->pps.scaling_matrix4[j], h->pps.scaling_matrix4[i], 16*sizeof(uint8_t))){
                h->dequant4_coeff[i] = h->dequant4_buffer[j];
                break;
            }
        }
        if(j<i)
            continue;
        for(q=0; q<52; q++){
            int shift = ff_div6[q] + 2;
            int idx = ff_rem6[q];
            for(x=0; x<16; x++)
                h->dequant4_coeff[i][q][transpose ? (x>>2)|((x<<2)&0xF) : x] =
                    ((uint32_t)dequant4_coeff_init[idx][(x&1) + ((x>>2)&1)] *
                    h->pps.scaling_matrix4[i][x]) << shift;
        }
    }
}
['static void init_dequant4_coeff_table(H264Context *h){\n    int i,j,q,x;\n    const int transpose = (h->s.dsp.h264_idct_add != ff_h264_idct_add_c);\n    for(i=0; i<6; i++ ){\n        h->dequant4_coeff[i] = h->dequant4_buffer[i];\n        for(j=0; j<i; j++){\n            if(!memcmp(h->pps.scaling_matrix4[j], h->pps.scaling_matrix4[i], 16*sizeof(uint8_t))){\n                h->dequant4_coeff[i] = h->dequant4_buffer[j];\n                break;\n            }\n        }\n        if(j<i)\n            continue;\n        for(q=0; q<52; q++){\n            int shift = ff_div6[q] + 2;\n            int idx = ff_rem6[q];\n            for(x=0; x<16; x++)\n                h->dequant4_coeff[i][q][transpose ? (x>>2)|((x<<2)&0xF) : x] =\n                    ((uint32_t)dequant4_coeff_init[idx][(x&1) + ((x>>2)&1)] *\n                    h->pps.scaling_matrix4[i][x]) << shift;\n        }\n    }\n}']