# HG changeset patch # User michael # Date 1142024322 0 # Node ID f327101488bd10bd6d69d762fe9794f4b4347641 # Parent 333e016c2c8a9b0e0daa9145c38fd7afd2c610bb out of array read fix diff -r 333e016c2c8a -r f327101488bd svq1_cb.h --- a/svq1_cb.h Fri Mar 10 20:40:52 2006 +0000 +++ b/svq1_cb.h Fri Mar 10 20:58:42 2006 +0000 @@ -764,9 +764,10 @@ }; /* list of codebooks for inter-coded vectors */ -static const int8_t* const svq1_inter_codebooks[4] = { +static const int8_t* const svq1_inter_codebooks[6] = { svq1_inter_codebook_4x2, svq1_inter_codebook_4x4, - svq1_inter_codebook_8x4, svq1_inter_codebook_8x8 + svq1_inter_codebook_8x4, svq1_inter_codebook_8x8, + NULL, NULL, }; static const int8_t svq1_inter_codebook_sum[4][16*6] = { @@ -1538,9 +1539,10 @@ }; /* list of codebooks for intra-coded vectors */ -static const int8_t* const svq1_intra_codebooks[4] = { +static const int8_t* const svq1_intra_codebooks[6] = { svq1_intra_codebook_4x2, svq1_intra_codebook_4x4, - svq1_intra_codebook_8x4, svq1_intra_codebook_8x8 + svq1_intra_codebook_8x4, svq1_intra_codebook_8x8, + NULL, NULL, }; static const int8_t svq1_intra_codebook_sum[4][16*6] = {