projects
/
paraslash.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
aft: Avoid invalid read.
[paraslash.git]
/
wmadata.h
diff --git
a/wmadata.h
b/wmadata.h
index 5944e086ce24f224eeda47aff0f4fcade7f464d1..185ec1fcecb738de2a322d4e81aa67f384026b1b 100644
(file)
--- a/
wmadata.h
+++ b/
wmadata.h
@@
-19,20
+19,17
@@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-/**
- * \file wmadata.h Various WMA tables.
- */
+/** \file wmadata.h Various WMA tables. */
+/** Contains huffcodes, huffbits and run/level tables. */
struct coef_vlc_table {
/** Total number of codes. */
int n;
struct coef_vlc_table {
/** Total number of codes. */
int n;
- /** Number of levels. */
- int max_level;
/** VLC bit values. */
const uint32_t *huffcodes;
/** VLC bit size. */
const uint8_t *huffbits;
/** VLC bit values. */
const uint32_t *huffcodes;
/** VLC bit size. */
const uint8_t *huffbits;
- /* Table to build run/level tables. */
+ /*
*
Table to build run/level tables. */
const uint16_t *levels;
};
const uint16_t *levels;
};
@@
-1446,7
+1443,6
@@
static const uint16_t levels5[40] = {
#define DEF_COEF_TABLE(_x) { \
.n = sizeof(coef ## _x ## _huffbits), \
#define DEF_COEF_TABLE(_x) { \
.n = sizeof(coef ## _x ## _huffbits), \
- .max_level = sizeof(levels ## _x) / 2, \
.huffcodes = coef ## _x ## _huffcodes, \
.huffbits = coef ## _x ##_huffbits, \
.levels = levels ## _x}
.huffcodes = coef ## _x ## _huffcodes, \
.huffbits = coef ## _x ##_huffbits, \
.levels = levels ## _x}