Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-05-03 21:23:44 +0400
committerMichael Niedermayer <michaelni@gmx.at>2014-05-03 22:08:18 +0400
commit00948ff876eeaa73299528891318bf27cb4a1178 (patch)
tree91ab4adb5f4999a7699fad597827c159fd9fb728 /libavfilter/audio.c
parent77df9de78c9a54202973a4b6df48370bbddf142b (diff)
avfilter/audio: use av_mallocz_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/audio.c')
-rw-r--r--libavfilter/audio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/audio.c b/libavfilter/audio.c
index 315c273c28..1e1d8e04df 100644
--- a/libavfilter/audio.c
+++ b/libavfilter/audio.c
@@ -124,9 +124,9 @@ AVFilterBufferRef* avfilter_get_audio_buffer_ref_from_arrays_channels(uint8_t **
samples->linesize[0] = samplesref->linesize[0] = linesize;
if (planes > FF_ARRAY_ELEMS(samples->data)) {
- samples-> extended_data = av_mallocz(sizeof(*samples->extended_data) *
+ samples-> extended_data = av_mallocz_array(sizeof(*samples->extended_data),
planes);
- samplesref->extended_data = av_mallocz(sizeof(*samplesref->extended_data) *
+ samplesref->extended_data = av_mallocz_array(sizeof(*samplesref->extended_data),
planes);
if (!samples->extended_data || !samplesref->extended_data)