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

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

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

libavcodec/ac3.c:175:1: <Length trace>
173. }
174. 
175. void ff_ac3_bit_alloc_calc_bap(int16_t *mask, int16_t *psd, int start, int end,
     ^
176.                                int snr_offset, int floor,
177.                                const uint8_t *bap_tab, uint8_t *bap)

libavcodec/ac3.c:175:1: Parameter `*bap`
  173. }
  174. 
  175. void ff_ac3_bit_alloc_calc_bap(int16_t *mask, int16_t *psd, int start, int end,
       ^
  176.                                int snr_offset, int floor,
  177.                                const uint8_t *bap_tab, uint8_t *bap)

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