diff --git a/libswresample/swresample.c b/libswresample/swresample.c index dc0b8eb4fc..3079fc44f4 100644 --- a/libswresample/swresample.c +++ b/libswresample/swresample.c @@ -358,7 +358,7 @@ static int realloc_audio(AudioData *a, int count){ av_assert0(a->bps); av_assert0(a->ch_count); - a->data= av_malloc(countb*a->ch_count); + a->data= av_mallocz(countb*a->ch_count); if(!a->data) return AVERROR(ENOMEM); for(i=0; ich_count; i++){