[xiph-cvs] cvs commit: vorbis/lib bitrate.c

Michael Smith msmith at xiph.org
Fri Jun 14 10:14:59 PDT 2002



msmith      02/06/14 10:14:58

  Modified:    lib      bitrate.c
  Log:
  bugfix. bm->avg_binacc wasn't initialised to known values (and was used without
  setting these). So zero it.

Revision  Changes    Path
1.12      +2 -2      vorbis/lib/bitrate.c

Index: bitrate.c
===================================================================
RCS file: /usr/local/cvsroot/vorbis/lib/bitrate.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- bitrate.c	2002/01/22 08:06:06	1.11
+++ bitrate.c	2002/06/14 17:14:58	1.12
@@ -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 @@
       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;
         
         

<p><p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list