[FFmpeg-cvslog] r11393 - trunk/libavcodec/vorbis_dec.c

benoit subversion
Fri Jan 4 14:18:29 CET 2008


Author: benoit
Date: Fri Jan  4 14:18:28 2008
New Revision: 11393

Log:
Initialize "saved" buffer to zero.
Patch by Vincent Penn? vpenne wyplay com and Denes Balatoni


Modified:
   trunk/libavcodec/vorbis_dec.c

Modified: trunk/libavcodec/vorbis_dec.c
==============================================================================
--- trunk/libavcodec/vorbis_dec.c	(original)
+++ trunk/libavcodec/vorbis_dec.c	Fri Jan  4 14:18:28 2008
@@ -899,7 +899,7 @@ static int vorbis_parse_id_hdr(vorbis_co
 
     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));




More information about the ffmpeg-cvslog mailing list