Commit 75d900d5 authored by Michael Niedermayer's avatar Michael Niedermayer

swr: zero buffers on allocation

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 023c0730
......@@ -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; 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