[xiph-commits] r17512 - trunk/Tremor
tterribe at svn.xiph.org
tterribe at svn.xiph.org
Wed Oct 13 13:19:25 PDT 2010
Author: tterribe
Date: 2010-10-13 13:19:25 -0700 (Wed, 13 Oct 2010)
New Revision: 17512
Modified:
trunk/Tremor/codebook.c
Log:
Forward port r14602 from libvorbis.
Correctly handle the nonsensical codebook.dim==0 case.
Modified: trunk/Tremor/codebook.c
===================================================================
--- trunk/Tremor/codebook.c 2010-10-13 20:10:36 UTC (rev 17511)
+++ trunk/Tremor/codebook.c 2010-10-13 20:19:25 UTC (rev 17512)
@@ -105,7 +105,7 @@
int quantvals=0;
switch(s->maptype){
case 1:
- quantvals=_book_maptype1_quantvals(s);
+ quantvals=(s->dim==0?0:_book_maptype1_quantvals(s));
break;
case 2:
quantvals=s->entries*s->dim;
More information about the commits
mailing list