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

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:752:24: Call
750. 
751.     if (avctx->bits_per_coded_sample <= 16) {
752.         int buf_size = av_samples_get_buffer_size(NULL, avctx->channels,
                            ^
753.                                                   s->nb_samples,
754.                                                   AV_SAMPLE_FMT_S32P, 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_get_buffer_size` 
  122.             return AVERROR(EINVAL);
  123.         align = 1;
  124.         nb_samples = FFALIGN(nb_samples, 32);
               ^
  125.     }
  126. 
