vorbis_dec: Change partition_class[] to uint8_t.
authorAlex Converse <alex.converse@gmail.com>
Fri, 6 Aug 2010 16:10:42 +0000 (16:10 +0000)
committerAlex Converse <alex.converse@gmail.com>
Fri, 6 Aug 2010 16:10:42 +0000 (16:10 +0000)
When sizeof(uint_fast8_t) >= sizeof(int) there are unintended size effects.

Originally committed as revision 24716 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/vorbis_dec.c

index 19f7e1ebdca73462969dae9c2187e5d4dd0f7c74..be9db1c7789e7a8c09e7e5abd8ed746afd518f3e 100644 (file)
@@ -81,7 +81,7 @@ typedef struct {
         } t0;
         struct vorbis_floor1_s {
             uint_fast8_t partitions;
-            uint_fast8_t partition_class[32];
+            uint8_t      partition_class[32];
             uint_fast8_t class_dimensions[16];
             uint_fast8_t class_subclasses[16];
             uint_fast8_t class_masterbook[16];