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

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

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

libavcodec/ac3enc.c:918:1: <Length trace>
916.  *         is used.
917.  */
918. static int bit_alloc(AC3EncodeContext *s, int snr_offset)
     ^
919. {
920.     int blk, ch;

libavcodec/ac3enc.c:918:1: Parameter `s->blocks[*]`
916.  *         is used.
917.  */
918. static int bit_alloc(AC3EncodeContext *s, int snr_offset)
     ^
919. {
920.     int blk, ch;

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