# HG changeset patch # User bcoudurier # Date 1209214786 0 # Node ID 36e1f34d542888475dc302db707becff42e7d19e # Parent 85cb0c3f8e54b23ca97f13f2c4791c634ab0ad4d fsize is 12 bits according to specs diff -r 85cb0c3f8e54 -r 36e1f34d5428 mpegaudiodec.c --- 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;