libavcodec/h264_slice.c:390: error: Buffer Overrun L2
  Offset: [0, 6] Size: 6.

libavcodec/h264_slice.c:381:1: <Length trace>
379. }
380. 
381. void h264_init_dequant_tables(H264Context *h)
     ^
382. {
383.     int i, x;

libavcodec/h264_slice.c:381:1: Parameter `*h->dequant4_coeff[*]`
379. }
380. 
381. void h264_init_dequant_tables(H264Context *h)
     ^
382. {
383.     int i, x;

libavcodec/h264_slice.c:384:5: Call
382. {
383.     int i, x;
384.     init_dequant4_coeff_table(h);
         ^
385.     if (h->pps.transform_8x8_mode)
386.         init_dequant8_coeff_table(h);

libavcodec/h264_slice.c:355:1: Parameter `*h->dequant4_coeff[*]`
  353. }
  354. 
  355. static void init_dequant4_coeff_table(H264Context *h)
       ^
  356. {
  357.     int i, j, q, x;

libavcodec/h264_slice.c:390:17: Array access: Offset: [0, 6] Size: 6
388.         for (i = 0; i < 6; i++)
389.             for (x = 0; x < 16; x++)
390.                 h->dequant4_coeff[i][0][x] = 1 << 6;
                     ^
391.         if (h->pps.transform_8x8_mode)
392.             for (i = 0; i < 6; i++)

void h264_init_dequant_tables(H264Context *h)
{
    int i, x;
    init_dequant4_coeff_table(h);
    if (h->pps.transform_8x8_mode)
        init_dequant8_coeff_table(h);
    if (h->sps.transform_bypass) {
        for (i = 0; i < 6; i++)
            for (x = 0; x < 16; x++)
                h->dequant4_coeff[i][0][x] = 1 << 6;
        if (h->pps.transform_8x8_mode)
            for (i = 0; i < 6; i++)
                for (x = 0; x < 64; x++)
                    h->dequant8_coeff[i][0][x] = 1 << 6;
    }
}
['void h264_init_dequant_tables(H264Context *h)\n{\n    int i, x;\n    init_dequant4_coeff_table(h);\n    if (h->pps.transform_8x8_mode)\n        init_dequant8_coeff_table(h);\n    if (h->sps.transform_bypass) {\n        for (i = 0; i < 6; i++)\n            for (x = 0; x < 16; x++)\n                h->dequant4_coeff[i][0][x] = 1 << 6;\n        if (h->pps.transform_8x8_mode)\n            for (i = 0; i < 6; i++)\n                for (x = 0; x < 64; x++)\n                    h->dequant8_coeff[i][0][x] = 1 << 6;\n    }\n}', 'static void init_dequant4_coeff_table(H264Context *h)\n{\n    int i, j, q, x;\n    const int max_qp = 51 + 6 * (h->sps.bit_depth_luma - 8);\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],\n                        16 * sizeof(uint8_t))) {\n                h->dequant4_coeff[i] = h->dequant4_buffer[j];\n                break;\n            }\n        if (j < i)\n            continue;\n        for (q = 0; q < max_qp + 1; q++) {\n            int shift = div6[q] + 2;\n            int idx   = rem6[q];\n            for (x = 0; x < 16; x++)\n                h->dequant4_coeff[i][q][(x >> 2) | ((x << 2) & 0xF)] =\n                    ((uint32_t)dequant4_coeff_init[idx][(x & 1) + ((x >> 2) & 1)] *\n                     h->pps.scaling_matrix4[i][x]) << shift;\n        }\n    }\n}']