From cd3289650ac7fe17f14aa06cc3b2a8c101a13db4 Mon Sep 17 00:00:00 2001 From: Baptiste Coudurier Date: Sat, 26 Apr 2008 12:59:46 +0000 Subject: [PATCH] fsize is 12 bits according to specs Originally committed as revision 12984 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/mpegaudiodec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/mpegaudiodec.c b/libavcodec/mpegaudiodec.c index dcc9332970..1691a77e4d 100644 --- a/libavcodec/mpegaudiodec.c +++ b/libavcodec/mpegaudiodec.c @@ -2580,7 +2580,7 @@ static int decode_frame_mp3on4(AVCodecContext * avctx, 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;