[xiph-cvs] cvs commit: vorbis/lib psy.c
Monty
xiphmont at xiph.org
Wed Jan 31 17:29:18 PST 2001
xiphmont 01/01/31 17:29:17
Modified: lib psy.c
Log:
segfault fix in bark_noise_median()
Revision Changes Path
1.38 +3 -3 vorbis/lib/psy.c
Index: psy.c
===================================================================
RCS file: /usr/local/cvsroot/vorbis/lib/psy.c,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -r1.37 -r1.38
--- psy.c 2001/01/30 23:40:33 1.37
+++ psy.c 2001/02/01 01:29:17 1.38
@@ -12,7 +12,7 @@
********************************************************************
function: psychoacoustics not including preecho
- last mod: $Id: psy.c,v 1.37 2001/01/30 23:40:33 xiphmont Exp $
+ last mod: $Id: psy.c,v 1.38 2001/02/01 01:29:17 xiphmont Exp $
********************************************************************/
@@ -590,8 +590,8 @@
countbelow+=radix[median];
}
- while((countabove+countbelow)*thresh[i]<(countbelow-radix[median])
- && median+1<BINCOUNT){
+ while(median<LASTBIN &&
+ (countabove+countbelow)*thresh[i]<(countbelow-radix[median])){
countabove+=radix[median];
countbelow-=radix[median];
median++;
--- >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