annotate libfaad2/codebook/hcb_7.h @ 18671:8fb542b97815

Protect SIZE_MAX use
author rtogni
date Fri, 09 Jun 2006 23:19:13 +0000
parents 1d5a49e6d9db
children e83eef58b30a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
10725
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
1 /*
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
2 ** FAAD2 - Freeware Advanced Audio (AAC) Decoder including SBR decoding
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
3 ** Copyright (C) 2003 M. Bakker, Ahead Software AG, http://www.nero.com
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
4 **
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
5 ** This program is free software; you can redistribute it and/or modify
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
6 ** it under the terms of the GNU General Public License as published by
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
7 ** the Free Software Foundation; either version 2 of the License, or
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
8 ** (at your option) any later version.
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
9 **
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
10 ** This program is distributed in the hope that it will be useful,
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
11 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
12 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
13 ** GNU General Public License for more details.
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
14 **
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
15 ** You should have received a copy of the GNU General Public License
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
16 ** along with this program; if not, write to the Free Software
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
17 ** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
18 **
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
19 ** Any non-GPL usage of this software or parts of this software is strictly
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
20 ** forbidden.
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
21 **
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
22 ** Commercial non-GPL licensing of this software is possible.
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
23 ** For more info contact Ahead Software through Mpeg4AAClicense@nero.com.
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
24 **
14726
1d5a49e6d9db Remove modification notice from files that have not been locally modified.
diego
parents: 12625
diff changeset
25 ** $Id: hcb_7.h,v 1.3 2003/09/09 18:12:01 menno Exp $
10725
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
26 **/
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
27
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
28 /* Binary search huffman table HCB_7 */
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
29
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
30
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
31 static hcb_bin_pair hcb7[] = {
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
32 { /* 0 */ 0, { 1, 2 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
33 { /* 1 */ 1, { 0, 0 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
34 { /* 2 */ 0, { 1, 2 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
35 { /* 3 */ 0, { 2, 3 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
36 { /* 4 */ 0, { 3, 4 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
37 { /* 5 */ 1, { 1, 0 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
38 { /* 6 */ 1, { 0, 1 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
39 { /* 7 */ 0, { 2, 3 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
40 { /* 8 */ 0, { 3, 4 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
41 { /* 9 */ 1, { 1, 1 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
42 { /* 10 */ 0, { 3, 4 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
43 { /* 11 */ 0, { 4, 5 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
44 { /* 12 */ 0, { 5, 6 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
45 { /* 13 */ 0, { 6, 7 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
46 { /* 14 */ 0, { 7, 8 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
47 { /* 15 */ 0, { 8, 9 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
48 { /* 16 */ 0, { 9, 10 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
49 { /* 17 */ 0, { 10, 11 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
50 { /* 18 */ 0, { 11, 12 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
51 { /* 19 */ 1, { 2, 1 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
52 { /* 20 */ 1, { 1, 2 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
53 { /* 21 */ 1, { 2, 0 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
54 { /* 22 */ 1, { 0, 2 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
55 { /* 23 */ 0, { 8, 9 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
56 { /* 24 */ 0, { 9, 10 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
57 { /* 25 */ 0, { 10, 11 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
58 { /* 26 */ 0, { 11, 12 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
59 { /* 27 */ 0, { 12, 13 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
60 { /* 28 */ 0, { 13, 14 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
61 { /* 29 */ 0, { 14, 15 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
62 { /* 30 */ 0, { 15, 16 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
63 { /* 31 */ 1, { 3, 1 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
64 { /* 32 */ 1, { 1, 3 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
65 { /* 33 */ 1, { 2, 2 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
66 { /* 34 */ 1, { 3, 0 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
67 { /* 35 */ 1, { 0, 3 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
68 { /* 36 */ 0, { 11, 12 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
69 { /* 37 */ 0, { 12, 13 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
70 { /* 38 */ 0, { 13, 14 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
71 { /* 39 */ 0, { 14, 15 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
72 { /* 40 */ 0, { 15, 16 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
73 { /* 41 */ 0, { 16, 17 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
74 { /* 42 */ 0, { 17, 18 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
75 { /* 43 */ 0, { 18, 19 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
76 { /* 44 */ 0, { 19, 20 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
77 { /* 45 */ 0, { 20, 21 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
78 { /* 46 */ 0, { 21, 22 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
79 { /* 47 */ 1, { 2, 3 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
80 { /* 48 */ 1, { 3, 2 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
81 { /* 49 */ 1, { 1, 4 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
82 { /* 50 */ 1, { 4, 1 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
83 { /* 51 */ 1, { 1, 5 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
84 { /* 52 */ 1, { 5, 1 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
85 { /* 53 */ 1, { 3, 3 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
86 { /* 54 */ 1, { 2, 4 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
87 { /* 55 */ 1, { 0, 4 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
88 { /* 56 */ 1, { 4, 0 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
89 { /* 57 */ 0, { 12, 13 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
90 { /* 58 */ 0, { 13, 14 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
91 { /* 59 */ 0, { 14, 15 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
92 { /* 60 */ 0, { 15, 16 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
93 { /* 61 */ 0, { 16, 17 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
94 { /* 62 */ 0, { 17, 18 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
95 { /* 63 */ 0, { 18, 19 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
96 { /* 64 */ 0, { 19, 20 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
97 { /* 65 */ 0, { 20, 21 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
98 { /* 66 */ 0, { 21, 22 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
99 { /* 67 */ 0, { 22, 23 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
100 { /* 68 */ 0, { 23, 24 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
101 { /* 69 */ 1, { 4, 2 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
102 { /* 70 */ 1, { 2, 5 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
103 { /* 71 */ 1, { 5, 2 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
104 { /* 72 */ 1, { 0, 5 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
105 { /* 73 */ 1, { 6, 1 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
106 { /* 74 */ 1, { 5, 0 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
107 { /* 75 */ 1, { 1, 6 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
108 { /* 76 */ 1, { 4, 3 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
109 { /* 77 */ 1, { 3, 5 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
110 { /* 78 */ 1, { 3, 4 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
111 { /* 79 */ 1, { 5, 3 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
112 { /* 80 */ 1, { 2, 6 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
113 { /* 81 */ 1, { 6, 2 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
114 { /* 82 */ 1, { 1, 7 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
115 { /* 83 */ 0, { 10, 11 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
116 { /* 84 */ 0, { 11, 12 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
117 { /* 85 */ 0, { 12, 13 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
118 { /* 86 */ 0, { 13, 14 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
119 { /* 87 */ 0, { 14, 15 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
120 { /* 88 */ 0, { 15, 16 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
121 { /* 89 */ 0, { 16, 17 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
122 { /* 90 */ 0, { 17, 18 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
123 { /* 91 */ 0, { 18, 19 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
124 { /* 92 */ 0, { 19, 20 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
125 { /* 93 */ 1, { 3, 6 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
126 { /* 94 */ 1, { 0, 6 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
127 { /* 95 */ 1, { 6, 0 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
128 { /* 96 */ 1, { 4, 4 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
129 { /* 97 */ 1, { 7, 1 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
130 { /* 98 */ 1, { 4, 5 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
131 { /* 99 */ 1, { 7, 2 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
132 { /* 00 */ 1, { 5, 4 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
133 { /* 01 */ 1, { 6, 3 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
134 { /* 02 */ 1, { 2, 7 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
135 { /* 03 */ 1, { 7, 3 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
136 { /* 04 */ 1, { 6, 4 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
137 { /* 05 */ 1, { 5, 5 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
138 { /* 06 */ 1, { 4, 6 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
139 { /* 07 */ 1, { 3, 7 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
140 { /* 08 */ 0, { 5, 6 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
141 { /* 09 */ 0, { 6, 7 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
142 { /* 10 */ 0, { 7, 8 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
143 { /* 11 */ 0, { 8, 9 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
144 { /* 12 */ 0, { 9, 10 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
145 { /* 13 */ 1, { 7, 0 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
146 { /* 14 */ 1, { 0, 7 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
147 { /* 15 */ 1, { 6, 5 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
148 { /* 16 */ 1, { 5, 6 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
149 { /* 17 */ 1, { 7, 4 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
150 { /* 18 */ 1, { 4, 7 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
151 { /* 19 */ 1, { 5, 7 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
152 { /* 20 */ 1, { 7, 5 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
153 { /* 21 */ 0, { 2, 3 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
154 { /* 22 */ 0, { 3, 4 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
155 { /* 23 */ 1, { 7, 6 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
156 { /* 24 */ 1, { 6, 6 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
157 { /* 25 */ 1, { 6, 7 } },
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
158 { /* 26 */ 1, { 7, 7 } }
e989150f8216 libfaad2 v2.0rc1 imported
arpi
parents:
diff changeset
159 };