aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-05-12 12:24:41 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-05-12 12:24:41 +0200
commitb9cce9ee5c7b9e37ee6e4e8c7b3dc65c9d3cee97 (patch)
treeda0bd5a60a4ecaca6330a48885507c4fb76e33cf
parente951e04a4a69504356b491aa5712ceb72be7a6c7 (diff)
downloadffmpeg-b9cce9ee5c7b9e37ee6e4e8c7b3dc65c9d3cee97.tar.gz
avfilter/buffer: Use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavfilter/buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/buffer.c b/libavfilter/buffer.c
index 885e9caf96..0327952e79 100644
--- a/libavfilter/buffer.c
+++ b/libavfilter/buffer.c
@@ -79,7 +79,7 @@ AVFilterBufferRef *avfilter_ref_buffer(AVFilterBufferRef *ref, int pmask)
if (ref->extended_data && ref->extended_data != ref->data) {
int nb_channels = av_get_channel_layout_nb_channels(ref->audio->channel_layout);
- if (!(ret->extended_data = av_malloc(sizeof(*ret->extended_data) *
+ if (!(ret->extended_data = av_malloc_array(sizeof(*ret->extended_data),
nb_channels))) {
av_freep(&ret->audio);
av_freep(&ret);