summaryrefslogtreecommitdiff
path: root/lib/res0.c
diff options
context:
space:
mode:
authorSegher Boessenkool <segher@xiph.org>2001-12-19 23:13:33 +0000
committerSegher Boessenkool <segher@xiph.org>2001-12-19 23:13:33 +0000
commit944ed8b3c710c8f40e7b4ec70f5cd7228016ee66 (patch)
tree8cdcf38a4ef5b6350f7a48863756dca0953bfe94 /lib/res0.c
parent8a1271e8f02b09e28b6c2179abe6751304210a80 (diff)
downloadlibvorbis-git-944ed8b3c710c8f40e7b4ec70f5cd7228016ee66.tar.gz
Kill some warnings. Oh, and make examples compile again under
CodeWarrior. Oops. svn path=/trunk/vorbis/; revision=2862
Diffstat (limited to 'lib/res0.c')
-rw-r--r--lib/res0.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/res0.c b/lib/res0.c
index 2d6465d3..5fa7005f 100644
--- a/lib/res0.c
+++ b/lib/res0.c
@@ -11,7 +11,7 @@
********************************************************************
function: residue backend 0, 1 and 2 implementation
- last mod: $Id: res0.c,v 1.40 2001/12/19 01:08:15 xiphmont Exp $
+ last mod: $Id: res0.c,v 1.41 2001/12/19 23:13:33 segher Exp $
********************************************************************/
@@ -302,6 +302,7 @@ vorbis_look_residue *res0_look(vorbis_dsp_state *vd,vorbis_info_mode *vm,
}
+#if 0
/* does not guard against invalid settings; eg, a subn of 16 and a
subgroup request of 32. Max subn of 128 */
static int _interleaved_testhack(float *vec,int n,vorbis_look_residue0 *look,
@@ -344,6 +345,8 @@ static int _interleaved_testhack(float *vec,int n,vorbis_look_residue0 *look,
return(i);
}
+#endif
+
static int _testhack(float *vec,int n,vorbis_look_residue0 *look,
int auxparts,int auxpartnum){
@@ -584,12 +587,11 @@ static int _01forward(vorbis_block *vb,vorbis_look_residue *vl,
/* training hack */
if(val<look->phrasebook->entries)
- ret=vorbis_book_encode(look->phrasebook,val,&vb->opb);
+ look->phrasebits+=vorbis_book_encode(look->phrasebook,val,&vb->opb);
#ifdef TRAIN_RES
else
fprintf(stderr,"!");
#endif
- look->phrasebits+=ret;
}
}