diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-05-12 12:24:25 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-05-12 12:24:25 +0200 |
commit | e951e04a4a69504356b491aa5712ceb72be7a6c7 (patch) | |
tree | b4e2decf8ee9d70d63e8ab8acc7e7a17e6ecc55e /libavfilter | |
parent | 4d93e758d732726fa7e20693db1f447985f1d6d8 (diff) | |
download | ffmpeg-e951e04a4a69504356b491aa5712ceb72be7a6c7.tar.gz |
avcodec/buffersrc: use av_mallocz_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/buffersrc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/buffersrc.c b/libavfilter/buffersrc.c index f910ae5df5..bb44e45d3c 100644 --- a/libavfilter/buffersrc.c +++ b/libavfilter/buffersrc.c @@ -271,7 +271,7 @@ do { \ if (planes > FF_ARRAY_ELEMS(frame->buf)) { frame->nb_extended_buf = planes - FF_ARRAY_ELEMS(frame->buf); - frame->extended_buf = av_mallocz(sizeof(*frame->extended_buf) * + frame->extended_buf = av_mallocz_array(sizeof(*frame->extended_buf), frame->nb_extended_buf); if (!frame->extended_buf) { ret = AVERROR(ENOMEM); |