]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/ttaenc.c
Merge commit 'efc7df6c1f11b20a48e60c3f743ce2331b661973'
[ffmpeg] / libavcodec / ttaenc.c
index e95dd6b22f1c17bf9c98908dec83c7027a5c6bc4..75d16642ea874618dbd37d795028d7bd1a73481d 100644 (file)
@@ -53,7 +53,7 @@ static av_cold int tta_encode_init(AVCodecContext *avctx)
     s->bps = avctx->bits_per_raw_sample >> 3;
     avctx->frame_size = 256 * avctx->sample_rate / 245;
 
-    s->ch_ctx = av_malloc(avctx->channels * sizeof(*s->ch_ctx));
+    s->ch_ctx = av_malloc_array(avctx->channels, sizeof(*s->ch_ctx));
     if (!s->ch_ctx)
         return AVERROR(ENOMEM);