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

xiphmont at svn.xiph.org xiphmont at svn.xiph.org
Wed Jun 20 21:35:10 PDT 2007


Author: xiphmont
Date: 2007-06-20 21:35:10 -0700 (Wed, 20 Jun 2007)
New Revision: 13155

Modified:
   trunk/vorbis/lib/res0.c
Log:
Catch one more omission in the vector length guarding


Modified: trunk/vorbis/lib/res0.c
===================================================================
--- trunk/vorbis/lib/res0.c	2007-06-21 04:22:33 UTC (rev 13154)
+++ trunk/vorbis/lib/res0.c	2007-06-21 04:35:10 UTC (rev 13155)
@@ -849,7 +849,7 @@
   int partitions_per_word=look->phrasebook->dim;
   int max=(vb->pcmend*ch)>>1;
   int end=(info->end<max?info->end:max);
-  int n=info->end-info->begin;
+  int n=end-info->begin;
 
   if(n>0){
     int partvals=n/samples_per_partition;



More information about the commits mailing list