libavcodec/ac3enc.c:1194: error: Buffer Overrun L2
  Offset: [1, 255] Size: 6 by call to `mdct512`.

libavcodec/ac3enc.c:1144:1: Array declaration
1142. }
1143. 
1144. static int AC3_encode_frame(AVCodecContext *avctx,
      ^
1145.                             unsigned char *frame, int buf_size, void *data)
1146. {

libavcodec/ac3enc.c:1194:13: Call
1192. 
1193.             /* do the MDCT */
1194.             mdct512(mdct_coef[i][ch], input_samples);
                  ^
1195. 
1196.             /* compute "exponents". We take into account the

libavcodec/ac3enc.c:220:9: <Offset trace>
218. 
219.     /* post rotation */
220.     for(i=0;i<N/4;i++) {
             ^
221.         re = x[i].re;
222.         im = x[i].im;

libavcodec/ac3enc.c:220:9: Assignment
  218. 
  219.     /* post rotation */
  220.     for(i=0;i<N/4;i++) {
               ^
  221.         re = x[i].re;
  222.         im = x[i].im;

libavcodec/ac3enc.c:198:1: <Length trace>
196. 
197. /* do a 512 point mdct */
198. static void mdct512(int32_t *out, int16_t *in)
     ^
199. {
200.     int i, re, im, re1, im1;

libavcodec/ac3enc.c:198:1: Parameter `*out`
  196. 
  197. /* do a 512 point mdct */
  198. static void mdct512(int32_t *out, int16_t *in)
       ^
  199. {
  200.     int i, re, im, re1, im1;

libavcodec/ac3enc.c:225:9: Array access: Offset: [1, 255] Size: 6 by call to `mdct512` 
  223.         CMUL(re1, im1, re, im, xsin1[i], xcos1[i]);
  224.         out[2*i] = im1;
  225.         out[N/2-1-2*i] = re1;
               ^
  226.     }
  227. }
