libavcodec/atrac3.c:686: error: Buffer Overrun L1
  Offset: 2 (⇐ 1 + 1) Size: 2 by call to `getChannelWeights`.

libavcodec/atrac3.c:678:1: Array declaration
676. }
677. 
678. static void channelWeighting (float *su1, float *su2, int *p3)
     ^
679. {
680.     int   band, nsample;

libavcodec/atrac3.c:686:9: Call
684.     if (p3[1] != 7 || p3[3] != 7){
685.         getChannelWeights(p3[1], p3[0], w[0]);
686.         getChannelWeights(p3[3], p3[2], w[1]);
             ^
687. 
688.         for(band = 1; band < 4; band++) {

libavcodec/atrac3.c:665:1: <Length trace>
663. }
664. 
665. static void getChannelWeights (int indx, int flag, float ch[2]){
     ^
666. 
667.     if (indx == 7) {

libavcodec/atrac3.c:665:1: Parameter `*ch`
  663. }
  664. 
  665. static void getChannelWeights (int indx, int flag, float ch[2]){
       ^
  666. 
  667.     if (indx == 7) {

libavcodec/atrac3.c:669:9: Array access: Offset: 2 (⇐ 1 + 1) Size: 2 by call to `getChannelWeights` 
  667.     if (indx == 7) {
  668.         ch[0] = 1.0;
  669.         ch[1] = 1.0;
               ^
  670.     } else {
  671.         ch[0] = (float)(indx & 7) / 7.0;
