[xiph-cvs] cvs commit: vorbis/lib floor0.c
Monty
xiphmont at xiph.org
Mon Feb 25 21:21:36 PST 2002
xiphmont 02/02/25 21:21:36
Modified: lib floor0.c
Log:
fix a one-off in a guard check during setup.
Revision Changes Path
1.51 +2 -2 vorbis/lib/floor0.c
Index: floor0.c
===================================================================
RCS file: /usr/local/cvsroot/vorbis/lib/floor0.c,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -r1.50 -r1.51
--- floor0.c 2002/01/22 08:06:06 1.50
+++ floor0.c 2002/02/26 05:21:35 1.51
@@ -11,7 +11,7 @@
********************************************************************
function: floor backend 0 implementation
- last mod: $Id: floor0.c,v 1.50 2002/01/22 08:06:06 xiphmont Exp $
+ last mod: $Id: floor0.c,v 1.51 2002/02/26 05:21:35 xiphmont Exp $
********************************************************************/
@@ -181,7 +181,7 @@
for(j=0;j<look->n;j++){
int val=floor( toBARK((info->rate/2.f)/look->n*j)
*scale); /* bark numbers represent band edges */
- if(val>=look->ln)val=look->ln; /* guard against the approximation */
+ if(val>=look->ln)val=look->ln-1; /* guard against the approximation */
look->linearmap[j]=val;
}
look->linearmap[j]=-1;
<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