Commit 1a10134e authored by Michael Niedermayer's avatar Michael Niedermayer

swresample/swresample: Use av_mallocz_array()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent f613f238
......@@ -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++){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment