Mercurial > libavcodec.hg
changeset 3186:f327101488bd libavcodec
out of array read fix
author | michael |
---|---|
date | Fri, 10 Mar 2006 20:58:42 +0000 |
parents | 333e016c2c8a |
children | 204080942ce2 |
files | svq1_cb.h |
diffstat | 1 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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] = {