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

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

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

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

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

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

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:902:25: Array access: Offset: -1 Size: 16 by call to `decode_spectrum` 
  900.          * be affected by the power compensation. */
  901.         if (ctx->used_quant_units > 2) {
  902.             num_specs = atrac3p_subband_to_num_powgrps[ctx->num_coded_subbands - 1];
                               ^
  903.             for (i = 0; i < num_specs; i++)
  904.                 chan->power_levs[i] = bitstream_read(bc, 4);
