Second patch to correct #1456
authorMonty <xiphmont@xiph.org>
Tue, 25 Nov 2008 17:27:58 +0000 (17:27 +0000)
committerMonty <xiphmont@xiph.org>
Tue, 25 Nov 2008 17:27:58 +0000 (17:27 +0000)
svn path=/trunk/vorbis/; revision=15533

lib/res0.c

index e3f2dc8..ed73aaa 100644 (file)
@@ -276,7 +276,10 @@ vorbis_look_residue *res0_look(vorbis_dsp_state *vd,
     }
   }
 
-  look->partvals=look->phrasebook->entries;
+  look->partvals=1;
+  for(j=0;j<dim;j++)
+      look->partvals*=look->parts;
+
   look->stages=maxstage;
   look->decodemap=_ogg_malloc(look->partvals*sizeof(*look->decodemap));
   for(j=0;j<look->partvals;j++){