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

libavcodec/ac3enc.c:446:1: Parameter `(*bap)[*]`
444. }
445. 
446. static int bit_alloc(AC3EncodeContext *s,
     ^
447.                      int16_t mask[NB_BLOCKS][AC3_MAX_CHANNELS][50],
448.                      int16_t psd[NB_BLOCKS][AC3_MAX_CHANNELS][N/2],

libavcodec/ac3enc.c:463:13: Call
461.         s->mant4_cnt = 0;
462.         for(ch=0;ch<s->nb_all_channels;ch++) {
463.             ff_ac3_bit_alloc_calc_bap(mask[i][ch], psd[i][ch], 0,
                 ^
464.                                       s->nb_coefs[ch], snr_offset,
465.                                       s->bit_alloc.floor, ff_ac3_bap_tab,

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

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

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