summaryrefslogtreecommitdiff
path: root/backends.h
diff options
context:
space:
mode:
authorTim Terriberry <tterribe@xiph.org>2010-10-13 23:12:19 +0000
committerTim Terriberry <tterribe@xiph.org>2010-10-13 23:12:19 +0000
commit88015f25dc5c29bf2819bfd8f7d2b46ec20dc204 (patch)
tree2d26702b018fd7cc556a718eaf9e24a976ae581b /backends.h
parent69dfba92c6a0b872273ae79a832d89d6e83a7363 (diff)
downloadtremor-88015f25dc5c29bf2819bfd8f7d2b46ec20dc204.tar.gz
Fixes for r17514.
Actually allocate the right number of comments, and add an extra check against i+1 overflowing (which could happen with a 4 GB comment packet on a 64-bit machine... unlikely, but possible). git-svn-id: https://svn.xiph.org/trunk/Tremor@17515 0101bb08-14d6-0310-b084-bc0e0c8e3800
Diffstat (limited to 'backends.h')
-rw-r--r--backends.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/backends.h b/backends.h
index 50c1c45..5202421 100644
--- a/backends.h
+++ b/backends.h
@@ -92,9 +92,10 @@ typedef struct vorbis_info_residue0{
/* first stage (lossless partitioning) */
int grouping; /* group n vectors per partition */
int partitions; /* possible codebooks for a partition */
+ int partvals; /* partitions ^ groupbook dim */
int groupbook; /* huffbook for partitioning */
int secondstages[64]; /* expanded out to pointers in lookup */
- int booklist[256]; /* list of second stage books */
+ int booklist[512]; /* list of second stage books */
} vorbis_info_residue0;
/* Mapping backend generic *****************************************/