summaryrefslogtreecommitdiff
path: root/libswresample/swresample.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-03-30 22:59:09 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-03-30 23:24:33 +0200
commit1a10134e20efcda2666fb6f3488b2cda8c7756dc (patch)
tree2d03db90c6c75e020e302a1bec5c18e4a180a7d9 /libswresample/swresample.c
parentf613f238f9dd366b296294b0e441697e3a90bf5d (diff)
swresample/swresample: Use av_mallocz_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswresample/swresample.c')
-rw-r--r--libswresample/swresample.c2
1 files changed, 1 insertions, 1 deletions
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; i<a->ch_count; i++){