diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-06-09 02:41:33 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-06-09 02:42:46 +0200 |
commit | 75d900d52edb281eb4ab4989800e75abe7555937 (patch) | |
tree | 0987b79a06f70d7c9468d1429def682914a852c1 | |
parent | 023c07307639f8067a23f12e83058e632d230fb9 (diff) | |
download | ffmpeg-75d900d52edb281eb4ab4989800e75abe7555937.tar.gz |
swr: zero buffers on allocation
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libswresample/swresample.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; i<a->ch_count; i++){ |