libavcodec/takdec.c:760: error: Integer Overflow L2
  ([1, 2147483616] + 32):signed32 by call to `av_samples_fill_arrays`.

libavcodec/takdec.c:688:16: Call
686.     bitstream_init8(bc, pkt->data, pkt->size);
687. 
688.     if ((ret = ff_tak_decode_frame_header(avctx, bc, &s->ti, 0)) < 0)
                    ^
689.         return ret;
690. 

libavcodec/tak.c:124:1: Parameter `ti->frame_samples`
  122. }
  123. 
  124. int ff_tak_decode_frame_header(AVCodecContext *avctx, BitstreamContext *bc,
       ^
  125.                                TAKStreamInfo *ti, int log_level_offset)
  126. {

libavcodec/takdec.c:744:21: Assignment
742.     avctx->channels = s->ti.channels;
743. 
744.     s->nb_samples = s->ti.last_frame_samples ? s->ti.last_frame_samples
                         ^
745.                                              : s->ti.frame_samples;
746. 

libavcodec/takdec.c:744:5: Assignment
742.     avctx->channels = s->ti.channels;
743. 
744.     s->nb_samples = s->ti.last_frame_samples ? s->ti.last_frame_samples
         ^
745.                                              : s->ti.frame_samples;
746. 

libavcodec/takdec.c:760:15: Call
758.         if (!s->decode_buffer)
759.             return AVERROR(ENOMEM);
760.         ret = av_samples_fill_arrays((uint8_t **)s->decoded, NULL,
                   ^
761.                                      s->decode_buffer, avctx->channels,
762.                                      s->nb_samples, AV_SAMPLE_FMT_S32P, 0);

libavutil/samplefmt.c:140:1: Parameter `nb_samples`
  138. }
  139. 
  140. int av_samples_fill_arrays(uint8_t **audio_data, int *linesize,
       ^
  141.                            const uint8_t *buf, int nb_channels, int nb_samples,
  142.                            enum AVSampleFormat sample_fmt, int align)

libavutil/samplefmt.c:147:16: Call
  145. 
  146.     planar   = av_sample_fmt_is_planar(sample_fmt);
  147.     buf_size = av_samples_get_buffer_size(&line_size, nb_channels, nb_samples,
                      ^
  148.                                           sample_fmt, align);
  149.     if (buf_size < 0)

libavutil/samplefmt.c:108:1: <LHS trace>
106. }
107. 
108. int av_samples_get_buffer_size(int *linesize, int nb_channels, int nb_samples,
     ^
109.                                enum AVSampleFormat sample_fmt, int align)
110. {

libavutil/samplefmt.c:108:1: Parameter `nb_samples`
    106. }
    107. 
    108. int av_samples_get_buffer_size(int *linesize, int nb_channels, int nb_samples,
         ^
    109.                                enum AVSampleFormat sample_fmt, int align)
    110. {

libavutil/samplefmt.c:124:9: Binary operation: ([1, 2147483616] + 32):signed32 by call to `av_samples_fill_arrays` 
    122.             return AVERROR(EINVAL);
    123.         align = 1;
    124.         nb_samples = FFALIGN(nb_samples, 32);
                 ^
    125.     }
    126. 
