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

bcoudurier subversion
Sat Apr 26 14:59:46 CEST 2008


Author: bcoudurier
Date: Sat Apr 26 14:59:46 2008
New Revision: 12984

Log:
fsize is 12 bits according to specs

Modified:
   trunk/libavcodec/mpegaudiodec.c

Modified: trunk/libavcodec/mpegaudiodec.c
==============================================================================
--- trunk/libavcodec/mpegaudiodec.c	(original)
+++ trunk/libavcodec/mpegaudiodec.c	Sat Apr 26 14:59:46 2008
@@ -2580,7 +2580,7 @@ static int decode_frame_mp3on4(AVCodecCo
 
     for (fr = 0; fr < s->frames; fr++) {
         start = start2;
-        fsize = (start[0] << 4) | (start[1] >> 4);
+        fsize = AV_RB16(start) >> 4;
         fsize = FFMIN3(fsize, len, MPA_MAX_CODED_FRAME_SIZE);
         start2 += fsize;
         len -= fsize;




More information about the ffmpeg-cvslog mailing list