aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-05-05 18:59:56 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-05-05 18:59:56 +0200
commit2ded57216eaede6d6c79f3b9ca08a72ac1891a51 (patch)
tree3040c320b7d5a8850b301e079910e22e462d8e55
parentb395167d56d53ff021e11ec11b3f4b356d3383c6 (diff)
downloadffmpeg-2ded57216eaede6d6c79f3b9ca08a72ac1891a51.tar.gz
avutil/audio_fifo: Use av_mallocz_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavutil/audio_fifo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/audio_fifo.c b/libavutil/audio_fifo.c
index cfbde89923..c3aadfdab7 100644
--- a/libavutil/audio_fifo.c
+++ b/libavutil/audio_fifo.c
@@ -76,7 +76,7 @@ AVAudioFifo *av_audio_fifo_alloc(enum AVSampleFormat sample_fmt, int channels,
af->sample_size = buf_size / nb_samples;
af->nb_buffers = av_sample_fmt_is_planar(sample_fmt) ? channels : 1;
- af->buf = av_mallocz(af->nb_buffers * sizeof(*af->buf));
+ af->buf = av_mallocz_array(af->nb_buffers, sizeof(*af->buf));
if (!af->buf)
goto error;