From 1a10134e20efcda2666fb6f3488b2cda8c7756dc Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 30 Mar 2015 22:59:09 +0200 Subject: swresample/swresample: Use av_mallocz_array() Signed-off-by: Michael Niedermayer --- libswresample/swresample.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libswresample') diff --git a/libswresample/swresample.c b/libswresample/swresample.c index 9baccd2b6e..c2be82c4e5 100644 --- a/libswresample/swresample.c +++ b/libswresample/swresample.c @@ -352,7 +352,7 @@ int swri_realloc_audio(AudioData *a, int count){ av_assert0(a->bps); av_assert0(a->ch_count); - a->data= av_mallocz(countb*a->ch_count); + a->data= av_mallocz_array(countb, a->ch_count); if(!a->data) return AVERROR(ENOMEM); for(i=0; ich_count; i++){ -- cgit v1.2.3