Commit d05b154b authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '5ac06633'

* commit '5ac06633':
  takdec: check av_samples_get_buffer_size() return value
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 69234e29 5ac06633
......@@ -743,6 +743,8 @@ static int tak_decode_frame(AVCodecContext *avctx, void *data,
int buf_size = av_samples_get_buffer_size(NULL, avctx->channels,
s->nb_samples,
AV_SAMPLE_FMT_S32P, 0);
if (buf_size < 0)
return buf_size;
av_fast_malloc(&s->decode_buffer, &s->decode_buffer_size, buf_size);
if (!s->decode_buffer)
return AVERROR(ENOMEM);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment