From 9b578387cba2f426f28fa7195bca7ed8622da2d2 Mon Sep 17 00:00:00 2001 From: Mike Smith Date: Fri, 14 Jun 2002 17:14:58 +0000 Subject: [PATCH] bugfix. bm->avg_binacc wasn't initialised to known values (and was used without setting these). So zero it. svn path=/trunk/vorbis/; revision=3389 --- lib/bitrate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/bitrate.c b/lib/bitrate.c index 96ff9c5..0b0e2a5 100644 --- a/lib/bitrate.c +++ b/lib/bitrate.c @@ -11,7 +11,7 @@ ******************************************************************** function: bitrate tracking and management - last mod: $Id: bitrate.c,v 1.11 2002/01/22 08:06:06 xiphmont Exp $ + last mod: $Id: bitrate.c,v 1.12 2002/06/14 17:14:58 msmith Exp $ ********************************************************************/ @@ -133,7 +133,7 @@ void vorbis_bitrate_init(vorbis_info *vi,bitrate_manager_state *bm){ if((bi->queue_avgmin>0 || bi->queue_avgmax>0) && bi->queue_avg_time>0){ - bm->avg_binacc=_ogg_malloc(bins*sizeof(*bm->avg_binacc)); + bm->avg_binacc=_ogg_calloc(bins,sizeof(*bm->avg_binacc)); bm->avgfloat=bi->avgfloat_initial; -- 2.7.4