[xiph-commits] r17542 - trunk/Tremor

xiphmont at svn.xiph.org xiphmont at svn.xiph.org
Mon Oct 18 02:52:01 PDT 2010


Author: xiphmont
Date: 2010-10-18 02:52:01 -0700 (Mon, 18 Oct 2010)
New Revision: 17542

Modified:
   trunk/Tremor/res012.c
Log:
The previous round of loosening the phrasebook checking to allow
playback of some older (pre-1.0) files removed an [implicit] check
against phrasebook dim being set to zero.  Reinstate as an explicit
check.



Modified: trunk/Tremor/res012.c
===================================================================
--- trunk/Tremor/res012.c	2010-10-18 09:49:20 UTC (rev 17541)
+++ trunk/Tremor/res012.c	2010-10-18 09:52:01 UTC (rev 17542)
@@ -136,6 +136,7 @@
     int entries = ci->book_param[info->groupbook]->entries;
     int dim = ci->book_param[info->groupbook]->dim;
     int partvals = 1;
+    if (dim<1) goto errout;
     while(dim>0){
       partvals *= info->partitions;
       if(partvals > entries) goto errout;



More information about the commits mailing list