Mercurial > libavcodec.hg
comparison svq1_cb.h @ 3186:f327101488bd libavcodec
out of array read fix
author | michael |
---|---|
date | Fri, 10 Mar 2006 20:58:42 +0000 |
parents | 0b546eab515d |
children | c8c591fe26f8 |
comparison
equal
deleted
inserted
replaced
3185:333e016c2c8a | 3186:f327101488bd |
---|---|
762 -3, 3, 5, -3, -3, 0, 0, -2, -1, 3, 2, -2, -2, 2, 2, -1, | 762 -3, 3, 5, -3, -3, 0, 0, -2, -1, 3, 2, -2, -2, 2, 2, -1, |
763 2, 0, 0, -1, 0, 0, 0, 0, 0, -3, -2, 1, 3, 0, -2, -2 | 763 2, 0, 0, -1, 0, 0, 0, 0, 0, -3, -2, 1, 3, 0, -2, -2 |
764 }; | 764 }; |
765 | 765 |
766 /* list of codebooks for inter-coded vectors */ | 766 /* list of codebooks for inter-coded vectors */ |
767 static const int8_t* const svq1_inter_codebooks[4] = { | 767 static const int8_t* const svq1_inter_codebooks[6] = { |
768 svq1_inter_codebook_4x2, svq1_inter_codebook_4x4, | 768 svq1_inter_codebook_4x2, svq1_inter_codebook_4x4, |
769 svq1_inter_codebook_8x4, svq1_inter_codebook_8x8 | 769 svq1_inter_codebook_8x4, svq1_inter_codebook_8x8, |
770 NULL, NULL, | |
770 }; | 771 }; |
771 | 772 |
772 static const int8_t svq1_inter_codebook_sum[4][16*6] = { | 773 static const int8_t svq1_inter_codebook_sum[4][16*6] = { |
773 { | 774 { |
774 -1, 1, -2, 0, 1, -1, -1, -1, -2, -1, 1, -1, -1, 0, -1, -1, | 775 -1, 1, -2, 0, 1, -1, -1, -1, -2, -1, 1, -1, -1, 0, -1, -1, |
1536 1, 0, -1, -1, -2, 0, 1, 2, 0, -2, -2, -2, -3, -1, 0, 1, | 1537 1, 0, -1, -1, -2, 0, 1, 2, 0, -2, -2, -2, -3, -1, 0, 1, |
1537 0, -2, -2, -2, -2, -1, 1, 1, 0, 0, 0, 0, 0, 1, 2, 2 | 1538 0, -2, -2, -2, -2, -1, 1, 1, 0, 0, 0, 0, 0, 1, 2, 2 |
1538 }; | 1539 }; |
1539 | 1540 |
1540 /* list of codebooks for intra-coded vectors */ | 1541 /* list of codebooks for intra-coded vectors */ |
1541 static const int8_t* const svq1_intra_codebooks[4] = { | 1542 static const int8_t* const svq1_intra_codebooks[6] = { |
1542 svq1_intra_codebook_4x2, svq1_intra_codebook_4x4, | 1543 svq1_intra_codebook_4x2, svq1_intra_codebook_4x4, |
1543 svq1_intra_codebook_8x4, svq1_intra_codebook_8x8 | 1544 svq1_intra_codebook_8x4, svq1_intra_codebook_8x8, |
1545 NULL, NULL, | |
1544 }; | 1546 }; |
1545 | 1547 |
1546 static const int8_t svq1_intra_codebook_sum[4][16*6] = { | 1548 static const int8_t svq1_intra_codebook_sum[4][16*6] = { |
1547 { | 1549 { |
1548 0, 0, 0, -1, -1, -1, -1, -2, 0, -1, -1, 0, -1, 0, 1, 0, | 1550 0, 0, 0, -1, -1, -1, -1, -2, 0, -1, -1, 0, -1, 0, 1, 0, |