libavcodec/wmv2.c:95: error: Buffer Overrun L1
  Offset: [61, 64] (⇐ [5, 8] + 56) Size: 6 by call to `wmv2_add_block`.

libavcodec/wmv2.c:95:5: Call
93. 
94.     wmv2_add_block(w, block1[4], dest_cb, s->uvlinesize, 4);
95.     wmv2_add_block(w, block1[5], dest_cr, s->uvlinesize, 5);
        ^
96. }
97. 

libavcodec/wmv2.c:55:1: Parameter `n`
  53. }
  54. 
  55. static void wmv2_add_block(Wmv2Context *w, int16_t *block1,
      ^
  56.                            uint8_t *dst, int stride, int n)
  57. {

libavcodec/wmv2.c:72:13: Call
  70.         case 2:
  71.             ff_simple_idct48_add(dst, stride, block1);
  72.             ff_simple_idct48_add(dst + 4, stride, w->abt_block2[n]);
                  ^
  73.             s->bdsp.clear_block(w->abt_block2[n]);
  74.             break;

libavcodec/simple_idct.c:191:1: Parameter `*block`
    189. }
    190. 
    191. void ff_simple_idct48_add(uint8_t *dest, int line_size, int16_t *block)
         ^
    192. {
    193.     int i;

libavcodec/simple_idct.c:202:9: Call
    200.     /* IDCT8 and store */
    201.     for(i=0; i<4; i++){
    202.         idctSparseColAdd_8(dest + i, line_size, block + i);
                 ^
    203.     }
    204. }

libavcodec/simple_idct_template.c:249:1: <Length trace>
247. }
248. 
249. static inline void FUNC(idctSparseColAdd)(pixel *dest, int line_size,
     ^
250.                                           int16_t *col)
251. {

libavcodec/simple_idct_template.c:249:1: Parameter `*col`
      247. }
      248. 
      249. static inline void FUNC(idctSparseColAdd)(pixel *dest, int line_size,
           ^
      250.                                           int16_t *col)
      251. {

libavcodec/simple_idct_template.c:254:5: Array access: Offset: [61, 64] (⇐ [5, 8] + 56) Size: 6 by call to `wmv2_add_block` 
      252.     int a0, a1, a2, a3, b0, b1, b2, b3;
      253. 
      254.     IDCT_COLS;
               ^
      255. 
      256.     dest[0] = av_clip_pixel(dest[0] + ((a0 + b0) >> COL_SHIFT));

static inline void FUNC(idctSparseColAdd)(pixel *dest, int line_size,
                                          int16_t *col)
{
    int a0, a1, a2, a3, b0, b1, b2, b3;
    IDCT_COLS;
    dest[0] = av_clip_pixel(dest[0] + ((a0 + b0) >> COL_SHIFT));
    dest += line_size;
    dest[0] = av_clip_pixel(dest[0] + ((a1 + b1) >> COL_SHIFT));
    dest += line_size;
    dest[0] = av_clip_pixel(dest[0] + ((a2 + b2) >> COL_SHIFT));
    dest += line_size;
    dest[0] = av_clip_pixel(dest[0] + ((a3 + b3) >> COL_SHIFT));
    dest += line_size;
    dest[0] = av_clip_pixel(dest[0] + ((a3 - b3) >> COL_SHIFT));
    dest += line_size;
    dest[0] = av_clip_pixel(dest[0] + ((a2 - b2) >> COL_SHIFT));
    dest += line_size;
    dest[0] = av_clip_pixel(dest[0] + ((a1 - b1) >> COL_SHIFT));
    dest += line_size;
    dest[0] = av_clip_pixel(dest[0] + ((a0 - b0) >> COL_SHIFT));
}
['void ff_wmv2_add_mb(MpegEncContext *s, int16_t block1[6][64],\n                    uint8_t *dest_y, uint8_t *dest_cb, uint8_t *dest_cr)\n{\n    Wmv2Context *const w = (Wmv2Context *) s;\n    wmv2_add_block(w, block1[0], dest_y,                       s->linesize, 0);\n    wmv2_add_block(w, block1[1], dest_y + 8,                   s->linesize, 1);\n    wmv2_add_block(w, block1[2], dest_y + 8 * s->linesize,     s->linesize, 2);\n    wmv2_add_block(w, block1[3], dest_y + 8 + 8 * s->linesize, s->linesize, 3);\n    if (s->flags & CODEC_FLAG_GRAY)\n        return;\n    wmv2_add_block(w, block1[4], dest_cb, s->uvlinesize, 4);\n    wmv2_add_block(w, block1[5], dest_cr, s->uvlinesize, 5);\n}', 'static void wmv2_add_block(Wmv2Context *w, int16_t *block1,\n                           uint8_t *dst, int stride, int n)\n{\n    MpegEncContext *const s = &w->s;\n    if (s->block_last_index[n] >= 0) {\n        switch (w->abt_type_table[n]) {\n        case 0:\n            w->wdsp.idct_add(dst, stride, block1);\n            break;\n        case 1:\n            ff_simple_idct84_add(dst, stride, block1);\n            ff_simple_idct84_add(dst + 4 * stride, stride, w->abt_block2[n]);\n            s->bdsp.clear_block(w->abt_block2[n]);\n            break;\n        case 2:\n            ff_simple_idct48_add(dst, stride, block1);\n            ff_simple_idct48_add(dst + 4, stride, w->abt_block2[n]);\n            s->bdsp.clear_block(w->abt_block2[n]);\n            break;\n        default:\n            av_log(s->avctx, AV_LOG_ERROR, "internal error in WMV2 abt\\n");\n        }\n    }\n}', 'void ff_simple_idct48_add(uint8_t *dest, int line_size, int16_t *block)\n{\n    int i;\n    for(i=0; i<8; i++) {\n        idct4row(block + i*8);\n    }\n    for(i=0; i<4; i++){\n        idctSparseColAdd_8(dest + i, line_size, block + i);\n    }\n}', 'static inline void FUNC(idctSparseColAdd)(pixel *dest, int line_size,\n                                          int16_t *col)\n{\n    int a0, a1, a2, a3, b0, b1, b2, b3;\n    IDCT_COLS;\n    dest[0] = av_clip_pixel(dest[0] + ((a0 + b0) >> COL_SHIFT));\n    dest += line_size;\n    dest[0] = av_clip_pixel(dest[0] + ((a1 + b1) >> COL_SHIFT));\n    dest += line_size;\n    dest[0] = av_clip_pixel(dest[0] + ((a2 + b2) >> COL_SHIFT));\n    dest += line_size;\n    dest[0] = av_clip_pixel(dest[0] + ((a3 + b3) >> COL_SHIFT));\n    dest += line_size;\n    dest[0] = av_clip_pixel(dest[0] + ((a3 - b3) >> COL_SHIFT));\n    dest += line_size;\n    dest[0] = av_clip_pixel(dest[0] + ((a2 - b2) >> COL_SHIFT));\n    dest += line_size;\n    dest[0] = av_clip_pixel(dest[0] + ((a1 - b1) >> COL_SHIFT));\n    dest += line_size;\n    dest[0] = av_clip_pixel(dest[0] + ((a0 - b0) >> COL_SHIFT));\n}']