Re: errors in valgrind

Aoyumi <[email protected]>
Newsgroups gmane.comp.multimedia.ogg.vorbis.general
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.