diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-04-23 21:13:53 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-04-23 21:13:53 +0200 |
commit | 2c4862e7a1315fb42eae7ebe574d41f53a1b009c (patch) | |
tree | 32b31b98798773adfc8f6dbb1132122cfe078762 | |
parent | 0bfb1e9238d8a0e7f0ad843e8b3b5b85de02c812 (diff) | |
download | ffmpeg-2c4862e7a1315fb42eae7ebe574d41f53a1b009c.tar.gz |
avfilter/avcodec: Use av_mallocz_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavfilter/avcodec.c | 2 |
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, |