libavcodec/ac3enc.c:251: error: Buffer Overrun L2
  Offset: [0, 255] Size: 6 by call to `calc_exp_diff`.

libavcodec/ac3enc.c:240:1: Parameter `(*exp)[*]`
238. }
239. 
240. static void compute_exp_strategy(uint8_t exp_strategy[NB_BLOCKS][AC3_MAX_CHANNELS],
     ^
241.                                  uint8_t exp[NB_BLOCKS][AC3_MAX_CHANNELS][N/2],
242.                                  int ch, int is_lfe)

libavcodec/ac3enc.c:251:20: Call
249.     exp_strategy[0][ch] = EXP_NEW;
250.     for(i=1;i<NB_BLOCKS;i++) {
251.         exp_diff = calc_exp_diff(exp[i][ch], exp[i-1][ch], N/2);
                        ^
252. #ifdef DEBUG
253.         av_log(NULL, AV_LOG_DEBUG, "exp_diff=%d\n", exp_diff);

libavcodec/ac3enc.c:230:1: <Offset trace>
228. 
229. /* XXX: use another norm ? */
230. static int calc_exp_diff(uint8_t *exp1, uint8_t *exp2, int n)
     ^
231. {
232.     int sum, i;

libavcodec/ac3enc.c:230:1: Parameter `n`
  228. 
  229. /* XXX: use another norm ? */
  230. static int calc_exp_diff(uint8_t *exp1, uint8_t *exp2, int n)
       ^
  231. {
  232.     int sum, i;

libavcodec/ac3enc.c:230:1: <Length trace>
228. 
229. /* XXX: use another norm ? */
230. static int calc_exp_diff(uint8_t *exp1, uint8_t *exp2, int n)
     ^
231. {
232.     int sum, i;

libavcodec/ac3enc.c:230:1: Parameter `*exp1`
  228. 
  229. /* XXX: use another norm ? */
  230. static int calc_exp_diff(uint8_t *exp1, uint8_t *exp2, int n)
       ^
  231. {
  232.     int sum, i;

libavcodec/ac3enc.c:235:20: Array access: Offset: [0, 255] Size: 6 by call to `calc_exp_diff` 
  233.     sum = 0;
  234.     for(i=0;i<n;i++) {
  235.         sum += abs(exp1[i] - exp2[i]);
                          ^
  236.     }
  237.     return sum;
