git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b395167
)
avutil/audio_fifo: Use av_mallocz_array()
author
Michael Niedermayer
<michaelni@gmx.at>
Mon, 5 May 2014 16:59:56 +0000
(18:59 +0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Mon, 5 May 2014 16:59:56 +0000
(18:59 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavutil/audio_fifo.c
patch
|
blob
|
history
diff --git
a/libavutil/audio_fifo.c
b/libavutil/audio_fifo.c
index
cfbde89
..
c3aadfd
100644
(file)
--- 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;