diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-04-26 12:59:46 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-04-26 12:59:46 +0000 |
commit | cd3289650ac7fe17f14aa06cc3b2a8c101a13db4 (patch) | |
tree | 623e46279880e0f58cc398534338af4e4dda1c0d | |
parent | 5be25fc133077c63338561dc8261c7905b4c8eeb (diff) | |
download | ffmpeg-cd3289650ac7fe17f14aa06cc3b2a8c101a13db4.tar.gz |
fsize is 12 bits according to specs
Originally committed as revision 12984 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/mpegaudiodec.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |