summaryrefslogtreecommitdiff
path: root/libavcodec/tta.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/tta.c')
-rw-r--r--libavcodec/tta.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/tta.c b/libavcodec/tta.c
index d9ff45fad6..17b4ca9032 100644
--- a/libavcodec/tta.c
+++ b/libavcodec/tta.c
@@ -107,7 +107,8 @@ static int allocate_buffers(AVCodecContext *avctx)
TTAContext *s = avctx->priv_data;
if (s->bps < 3) {
- s->decode_buffer = av_mallocz_array(sizeof(int32_t)*s->frame_length, s->channels);
+ s->decode_buffer = av_calloc(s->frame_length,
+ sizeof(*s->decode_buffer) * s->channels);
if (!s->decode_buffer)
return AVERROR(ENOMEM);
} else