changeset 6690:36e1f34d5428 libavcodec

fsize is 12 bits according to specs
author bcoudurier
date Sat, 26 Apr 2008 12:59:46 +0000
parents 85cb0c3f8e54
children 863e939331aa
files mpegaudiodec.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mpegaudiodec.c	Sat Apr 26 12:51:52 2008 +0000
+++ b/mpegaudiodec.c	Sat Apr 26 12:59:46 2008 +0000
@@ -2580,7 +2580,7 @@
 
     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;