Port r17544 from Tremor.
authorTim Terriberry <tterribe@xiph.org>
Thu, 21 Oct 2010 18:25:19 +0000 (18:25 +0000)
committerTim Terriberry <tterribe@xiph.org>
Thu, 21 Oct 2010 18:25:19 +0000 (18:25 +0000)
A guard conditional used > instead of >=.

svn path=/trunk/vorbis/; revision=17556

lib/res0.c

index 8f14201..c9baca4 100644 (file)
@@ -829,7 +829,7 @@ int res2_inverse(vorbis_block *vb,vorbis_look_residue *vl,
         if(s==0){
           /* fetch the partition word */
           int temp=vorbis_book_decode(look->phrasebook,&vb->opb);
-          if(temp==-1 || temp>info->partvals)goto eopbreak;
+          if(temp==-1 || temp>=info->partvals)goto eopbreak;
           partword[l]=look->decodemap[temp];
           if(partword[l]==NULL)goto errout;
         }