Author: agrundman
Date: Sat Jun 19 08:38:50 2010
New Revision: 8894
URL: http://svn.slimdevices.com/jive?rev=8894&view=rev
Log:
Work around silly Visual C restrictions
Modified:
7.6/trunk/squeezeplay/src/Tremor/codebook.c
Modified: 7.6/trunk/squeezeplay/src/Tremor/codebook.c
URL:
http://svn.slimdevices.com/jive/7.6/trunk/squeezeplay/src/Tremor/codebook.c?rev=8894&r1=8893&r2=8894&view=diff
==============================================================================
--- 7.6/trunk/squeezeplay/src/Tremor/codebook.c (original)
+++ 7.6/trunk/squeezeplay/src/Tremor/codebook.c Sat Jun 19 08:38:50 2010
@@ -472,10 +472,14 @@
/* dec_type choices here are 1,2; 3 doesn't make sense */
{
/* packed values */
- long total1=(s->q_bits*s->dim+8)/8; /* remember flag bit */
+ long total1, total2;
+
if (s->dim > (INT_MAX-8)/s->q_bits) goto _eofout;
+
+ total1=(s->q_bits*s->dim+8)/8; /* remember flag bit */
+
/* vector of column offsets; remember flag bit */
- long total2=(_ilog(quantvals-1)*s->dim+8)/8+(s->q_bits+7)/8;
+ total2=(_ilog(quantvals-1)*s->dim+8)/8+(s->q_bits+7)/8;
if(total1<=4 && total1<=total2){
_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/jive-checkins