vss: Avoid use after free in vss_send().
[paraslash.git] / wmadata.h
index 5944e086ce24f224eeda47aff0f4fcade7f464d1..185ec1fcecb738de2a322d4e81aa67f384026b1b 100644 (file)
--- a/wmadata.h
+++ b/wmadata.h
  * 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;
-       /** Number of levels. */
-       int max_level;
        /** 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;
 };
 
@@ -1446,7 +1443,6 @@ static const uint16_t levels5[40] = {
 
 #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}