libavcodec/atrac3plus.c:1795: error: Buffer Overrun L1
  Offset: -1 Size: 16 by call to `decode_spectrum`.

libavcodec/atrac3plus.c:1785:31: Assignment
1783. 
1784.     ctx->num_subbands       = atrac3p_qu_to_subband[ctx->num_quant_units - 1] + 1;
1785.     ctx->num_coded_subbands = ctx->used_quant_units
                                    ^
1786.                               ? atrac3p_qu_to_subband[ctx->used_quant_units - 1] + 1
1787.                               : 0;

libavcodec/atrac3plus.c:1785:5: Assignment
1783. 
1784.     ctx->num_subbands       = atrac3p_qu_to_subband[ctx->num_quant_units - 1] + 1;
1785.     ctx->num_coded_subbands = ctx->used_quant_units
          ^
1786.                               ? atrac3p_qu_to_subband[ctx->used_quant_units - 1] + 1
1787.                               : 0;

libavcodec/atrac3plus.c:1795:5: Call
1793.         return ret;
1794. 
1795.     decode_spectrum(gb, ctx, num_channels, avctx);
          ^
1796. 
1797.     if (num_channels == 2) {

libavcodec/atrac3plus.c:854:1: <Offset trace>
852.  * @param[in]     avctx         ptr to the AVCodecContext
853.  */
854. static void decode_spectrum(GetBitContext *gb, Atrac3pChanUnitCtx *ctx,
     ^
855.                             int num_channels, AVCodecContext *avctx)
856. {

libavcodec/atrac3plus.c:854:1: Parameter `ctx->num_coded_subbands`
  852.  * @param[in]     avctx         ptr to the AVCodecContext
  853.  */
  854. static void decode_spectrum(GetBitContext *gb, Atrac3pChanUnitCtx *ctx,
       ^
  855.                             int num_channels, AVCodecContext *avctx)
  856. {

libavcodec/atrac3plus_data.h:213:1: <Length trace>
211. 
212. /** Map subband number to number of power compensation groups */
213. static const int atrac3p_subband_to_num_powgrps[16] = {
     ^
214.     1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5
215. };

libavcodec/atrac3plus_data.h:213:1: Array declaration
  211. 
  212. /** Map subband number to number of power compensation groups */
  213. static const int atrac3p_subband_to_num_powgrps[16] = {
       ^
  214.     1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5
  215. };

libavcodec/atrac3plus.c:904:25: Array access: Offset: -1 Size: 16 by call to `decode_spectrum` 
  902.          * be affected by the power compensation. */
  903.         if (ctx->used_quant_units > 2) {
  904.             num_specs = atrac3p_subband_to_num_powgrps[ctx->num_coded_subbands - 1];
                               ^
  905.             for (i = 0; i < num_specs; i++)
  906.                 chan->power_levs[i] = get_bits(gb, 4);
