summaryrefslogtreecommitdiff
path: root/libavfilter/af_channelmap.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-06-07 15:05:51 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-06-07 15:05:51 +0200
commita62814abf45e8ec15f3ff7bd15d13aae8d3ed6e5 (patch)
tree08c9fa627279cb0a9c13e73e3e612e736b3652c1 /libavfilter/af_channelmap.c
parent1c7ac94cdf3fdf14842d283d472bafff79c3bdd5 (diff)
downloadffmpeg-a62814abf45e8ec15f3ff7bd15d13aae8d3ed6e5.tar.gz
avfilter/af_channelmap: Use av_mallocz_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/af_channelmap.c')
-rw-r--r--libavfilter/af_channelmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/af_channelmap.c b/libavfilter/af_channelmap.c
index dac19b129d..b3b5aca029 100644
--- a/libavfilter/af_channelmap.c
+++ b/libavfilter/af_channelmap.c
@@ -312,7 +312,7 @@ static int channelmap_filter_frame(AVFilterLink *inlink, AVFrame *buf)
if (nch_out > nch_in) {
if (nch_out > FF_ARRAY_ELEMS(buf->data)) {
uint8_t **new_extended_data =
- av_mallocz(nch_out * sizeof(*buf->extended_data));
+ av_mallocz_array(nch_out, sizeof(*buf->extended_data));
if (!new_extended_data) {
av_frame_free(&buf);
return AVERROR(ENOMEM);