[xiph-commits] r17556 - trunk/vorbis/lib

tterribe at svn.xiph.org tterribe at svn.xiph.org
Thu Oct 21 11:25:19 PDT 2010


Author: tterribe
Date: 2010-10-21 11:25:19 -0700 (Thu, 21 Oct 2010)
New Revision: 17556

Modified:
   trunk/vorbis/lib/res0.c
Log:
Port r17544 from Tremor.

A guard conditional used > instead of >=.


Modified: trunk/vorbis/lib/res0.c
===================================================================
--- trunk/vorbis/lib/res0.c	2010-10-21 18:14:51 UTC (rev 17555)
+++ trunk/vorbis/lib/res0.c	2010-10-21 18:25:19 UTC (rev 17556)
@@ -829,7 +829,7 @@
         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;
         }



More information about the commits mailing list