[Vorbis] errors in valgrind

Aoyumi aoyumi at gmail.com
Wed Jun 10 08:24:23 PDT 2009


devel wrote:
> Has anyone come across these errors using valgrind for the oggenc tool or the 
> encoder_example.c:

> 
> I was just checking to see if there were errors and this is what I found.
> Any clues!

I found the problem part in aoTuV beta 5.7. Please apply the following patches.


Aoyumi



Index: lib/psy.c
===================================================================
--- lib/psy.c	(revision 377)
+++ lib/psy.c	(revision 379)
@@ -1039,10 +1039,10 @@
  	if(impadnum)mp->noise_rate*=.8;
  	for(i=0;i<n;i++){
  		cell=75/(float)freq_bfn128[i];
-  		for(j=1; j<=freq_bfn128[i]; j++){
+  		for(j=1; j<freq_bfn128[i]; j++){
  			freqbuf = logmdct[i]-(cell*j);
-  				if((tempmdct[i+j] < freqbuf) && (mp->mdctbuf_flag == 1))
-  				 tempmdct[i+j] += (5./(float)freq_bfn128[i+j]);
+  			if((tempmdct[i+j] < freqbuf) && (mp->mdctbuf_flag == 1))
+  			 tempmdct[i+j] += (5./(float)freq_bfn128[i+j]);
  		}
  	}
  }else if((n == 256) && !modenumber && !blocktype){
@@ -1076,7 +1076,7 @@
  	if(impadnum)mp->noise_rate*=.5;
  	for(i=0;i<n;i++){
  		cell=75/(float)freq_bfn256[i];
-  		for(j=1; j<=freq_bfn256[i]; j++){
+  		for(j=1; j<freq_bfn256[i]; j++){
  			freqbuf = logmdct[i]-(cell*j);
  			if((tempmdct[i+j] < freqbuf) && (mp->mdctbuf_flag == 1))
  			 tempmdct[i+j] += (10./(float)freq_bfn256[i+j]);[

EOF



More information about the Vorbis mailing list