libavcodec/ac3enc.c:933: error: Buffer Overrun L1
  Offset added: 256 Size: 48 by call to `ff_ac3_bit_alloc_calc_bap`.

libavcodec/ac3enc.c:917:1: Parameter `(*bap)[*]`
915.  *         is used.
916.  */
917. static int bit_alloc(AC3EncodeContext *s,
     ^
918.                      uint8_t bap[AC3_MAX_BLOCKS][AC3_MAX_CHANNELS][AC3_MAX_COEFS],
919.                      int snr_offset)

libavcodec/ac3enc.c:933:13: Call
931.         s->mant4_cnt = 0;
932.         for (ch = 0; ch < s->channels; ch++) {
933.             ff_ac3_bit_alloc_calc_bap(block->mask[ch], block->psd[ch], 0,
                 ^
934.                                       s->nb_coefs[ch], snr_offset,
935.                                       s->bit_alloc.floor, ff_ac3_bap_tab,

libavcodec/ac3.c:216:1: <Length trace>
214. }
215. 
216. void ff_ac3_bit_alloc_calc_bap(int16_t *mask, int16_t *psd, int start, int end,
     ^
217.                                int snr_offset, int floor,
218.                                const uint8_t *bap_tab, uint8_t *bap)

libavcodec/ac3.c:216:1: Parameter `*bap`
  214. }
  215. 
  216. void ff_ac3_bit_alloc_calc_bap(int16_t *mask, int16_t *psd, int start, int end,
       ^
  217.                                int snr_offset, int floor,
  218.                                const uint8_t *bap_tab, uint8_t *bap)

libavcodec/ac3.c:224:9: Array access: Offset added: 256 Size: 48 by call to `ff_ac3_bit_alloc_calc_bap` 
  222.     /* special case, if snr offset is -960, set all bap's to zero */
  223.     if (snr_offset == -960) {
  224.         memset(bap, 0, AC3_MAX_COEFS);
               ^
  225.         return;
  226.     }
