Skip to content
Snippets Groups Projects
Commit 75d900d5 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

swr: zero buffers on allocation

parent 023c0730
No related branches found
No related tags found
No related merge requests found
......@@ -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++){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment