summaryrefslogtreecommitdiff
path: root/libswresample
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-06-09 02:41:33 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-06-09 02:42:46 +0200
commit75d900d52edb281eb4ab4989800e75abe7555937 (patch)
tree0987b79a06f70d7c9468d1429def682914a852c1 /libswresample
parent023c07307639f8067a23f12e83058e632d230fb9 (diff)
downloadffmpeg-75d900d52edb281eb4ab4989800e75abe7555937.tar.gz
swr: zero buffers on allocation
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswresample')
-rw-r--r--libswresample/swresample.c2
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++){