[FFmpeg-cvslog] r12980 - trunk/libavcodec/mpegaudiodec.c

bcoudurier subversion
Sat Apr 26 14:34:37 CEST 2008


Author: bcoudurier
Date: Sat Apr 26 14:34:37 2008
New Revision: 12980

Log:
values can fit uint8_t

Modified:
   trunk/libavcodec/mpegaudiodec.c

Modified: trunk/libavcodec/mpegaudiodec.c
==============================================================================
--- trunk/libavcodec/mpegaudiodec.c	(original)
+++ trunk/libavcodec/mpegaudiodec.c	Sat Apr 26 14:34:37 2008
@@ -2476,10 +2476,10 @@ static int decode_frame_adu(AVCodecConte
 
 #ifdef CONFIG_MP3ON4_DECODER
 /* Next 3 arrays are indexed by channel config number (passed via codecdata) */
-static const int mp3Frames[16] = {0,1,1,2,3,3,4,5,2};   /* number of mp3 decoder instances */
-static const int mp3Channels[16] = {0,1,2,3,4,5,6,8,4}; /* total output channels */
+static const uint8_t mp3Frames[16] = {0,1,1,2,3,3,4,5,2};   /* number of mp3 decoder instances */
+static const uint8_t mp3Channels[16] = {0,1,2,3,4,5,6,8,4}; /* total output channels */
 /* offsets into output buffer, assume output order is FL FR BL BR C LFE */
-static const int chan_offset[9][5] = {
+static const uint8_t chan_offset[9][5] = {
     {0},
     {0},            // C
     {0},            // FLR
@@ -2566,7 +2566,7 @@ static int decode_frame_mp3on4(AVCodecCo
     const unsigned char *start2 = buf, *start;
     int fr, i, j, n;
     int off = avctx->channels;
-    const int *coff = chan_offset[s->chan_cfg];
+    const uint8_t *coff = chan_offset[s->chan_cfg];
 
     len = buf_size;
 




More information about the ffmpeg-cvslog mailing list