summaryrefslogtreecommitdiff
path: root/libavfilter/avcodec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-04-23 21:13:53 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-04-23 21:13:53 +0200
commit2c4862e7a1315fb42eae7ebe574d41f53a1b009c (patch)
tree32b31b98798773adfc8f6dbb1132122cfe078762 /libavfilter/avcodec.c
parent0bfb1e9238d8a0e7f0ad843e8b3b5b85de02c812 (diff)
avfilter/avcodec: Use av_mallocz_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/avcodec.c')
-rw-r--r--libavfilter/avcodec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/avcodec.c b/libavfilter/avcodec.c
index 605e5d24d8..ba11a25492 100644
--- a/libavfilter/avcodec.c
+++ b/libavfilter/avcodec.c
@@ -116,7 +116,7 @@ int avfilter_copy_buf_props(AVFrame *dst, const AVFilterBufferRef *src)
planes = av_sample_fmt_is_planar(src->format) ? nb_channels : 1;
if (planes > FF_ARRAY_ELEMS(dst->data)) {
- dst->extended_data = av_mallocz(planes * sizeof(*dst->extended_data));
+ dst->extended_data = av_mallocz_array(planes, sizeof(*dst->extended_data));
if (!dst->extended_data)
return AVERROR(ENOMEM);
memcpy(dst->extended_data, src->extended_data,