]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/libmp3lame.c
Merge commit '607ad990d31e6be52980970e5ce8cd25ab3de812'
[ffmpeg] / libavcodec / libmp3lame.c
index e33919be89c59afb3facc6c29ad5de17d5607597..6b9561d71a170e4b6e36f3ae450a56ee6f88ec85 100644 (file)
@@ -146,7 +146,7 @@ static av_cold int mp3lame_encode_init(AVCodecContext *avctx)
     if (avctx->sample_fmt == AV_SAMPLE_FMT_FLTP) {
         int ch;
         for (ch = 0; ch < avctx->channels; ch++) {
-            s->samples_flt[ch] = av_malloc(avctx->frame_size *
+            s->samples_flt[ch] = av_malloc_array(avctx->frame_size,
                                            sizeof(*s->samples_flt[ch]));
             if (!s->samples_flt[ch]) {
                 ret = AVERROR(ENOMEM);