[FFmpeg-cvslog] r24716 - trunk/libavcodec/vorbis_dec.c

alexc subversion
Fri Aug 6 18:10:42 CEST 2010


Author: alexc
Date: Fri Aug  6 18:10:42 2010
New Revision: 24716

Log:
vorbis_dec: Change partition_class[] to uint8_t.

When sizeof(uint_fast8_t) >= sizeof(int) there are unintended size effects.

Modified:
   trunk/libavcodec/vorbis_dec.c

Modified: trunk/libavcodec/vorbis_dec.c
==============================================================================
--- trunk/libavcodec/vorbis_dec.c	Fri Aug  6 12:29:14 2010	(r24715)
+++ trunk/libavcodec/vorbis_dec.c	Fri Aug  6 18:10:42 2010	(r24716)
@@ -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];



More information about the ffmpeg-cvslog mailing list