mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
avcodec/libvo-aacenc: Use av_mallocz_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
a5334d4081
commit
0f08b587fa
@ -65,7 +65,7 @@ static av_cold int aac_encode_init(AVCodecContext *avctx)
|
|||||||
s->last_frame = 2;
|
s->last_frame = 2;
|
||||||
ff_af_queue_init(avctx, &s->afq);
|
ff_af_queue_init(avctx, &s->afq);
|
||||||
|
|
||||||
s->end_buffer = av_mallocz(avctx->frame_size * avctx->channels * 2);
|
s->end_buffer = av_mallocz_array(avctx->channels, avctx->frame_size * 2);
|
||||||
if (!s->end_buffer) {
|
if (!s->end_buffer) {
|
||||||
ret = AVERROR(ENOMEM);
|
ret = AVERROR(ENOMEM);
|
||||||
goto error;
|
goto error;
|
||||||
|
Loading…
Reference in New Issue
Block a user