Mercurial > libavcodec.hg
changeset 6104:2b0d16689147 libavcodec
Initialize "saved" buffer to zero.
Patch by Vincent Penn vpenne wyplay com and Denes Balatoni
author | benoit |
---|---|
date | Fri, 04 Jan 2008 13:18:28 +0000 |
parents | 4d746aada17b |
children | 33674fb857b5 |
files | vorbis_dec.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/vorbis_dec.c Fri Jan 04 00:39:03 2008 +0000 +++ b/vorbis_dec.c Fri Jan 04 13:18:28 2008 +0000 @@ -899,7 +899,7 @@ vc->channel_residues= av_malloc((vc->blocksize[1]/2)*vc->audio_channels * sizeof(float)); vc->channel_floors = av_malloc((vc->blocksize[1]/2)*vc->audio_channels * sizeof(float)); - vc->saved = av_malloc((vc->blocksize[1]/2)*vc->audio_channels * sizeof(float)); + vc->saved = av_mallocz((vc->blocksize[1]/2)*vc->audio_channels * sizeof(float)); vc->ret = av_malloc((vc->blocksize[1]/2)*vc->audio_channels * sizeof(float)); vc->buf = av_malloc( vc->blocksize[1] * sizeof(float)); vc->buf_tmp = av_malloc( vc->blocksize[1] * sizeof(float));