libavcodec/ac3enc.c:1062: error: Buffer Overrun L3
  Offset: [-1, 4] Size: 6.

libavcodec/ac3enc.c:1048:10: <Offset trace>
1046.     reset_block_bap(s);
1047.     mantissa_bits = 0;
1048.     for (blk = 0; blk < AC3_MAX_BLOCKS; blk++) {
               ^
1049.         AC3Block *block = &s->blocks[blk];
1050.         // initialize grouped mantissa counts. these are set so that they are

libavcodec/ac3enc.c:1048:10: Assignment
1046.     reset_block_bap(s);
1047.     mantissa_bits = 0;
1048.     for (blk = 0; blk < AC3_MAX_BLOCKS; blk++) {
               ^
1049.         AC3Block *block = &s->blocks[blk];
1050.         // initialize grouped mantissa counts. these are set so that they are

libavcodec/ac3enc.c:1037:1: <Length trace>
1035.  *         is used.
1036.  */
1037. static int bit_alloc(AC3EncodeContext *s,
      ^
1038.                      int snr_offset)
1039. {

libavcodec/ac3enc.c:1037:1: Parameter `s->blocks[*]`
1035.  *         is used.
1036.  */
1037. static int bit_alloc(AC3EncodeContext *s,
      ^
1038.                      int snr_offset)
1039. {

libavcodec/ac3enc.c:1062:40: Array access: Offset: [-1, 4] Size: 6
1060.                whenever we reuse exponents. */
1061.             if (block->exp_strategy[ch] == EXP_REUSE) {
1062.                 memcpy(block->bap[ch], s->blocks[blk-1].bap[ch], AC3_MAX_COEFS);
                                             ^
1063.             } else {
1064.                 ff_ac3_bit_alloc_calc_bap(block->mask[ch], block->psd[ch], 0,
