Commit dd2dc010 authored by bcoudurier's avatar bcoudurier

fsize is 12 bits according to specs

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@12984 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 05d234a7
...@@ -2580,7 +2580,7 @@ static int decode_frame_mp3on4(AVCodecContext * avctx, ...@@ -2580,7 +2580,7 @@ static int decode_frame_mp3on4(AVCodecContext * avctx,
for (fr = 0; fr < s->frames; fr++) { for (fr = 0; fr < s->frames; fr++) {
start = start2; start = start2;
fsize = (start[0] << 4) | (start[1] >> 4); fsize = AV_RB16(start) >> 4;
fsize = FFMIN3(fsize, len, MPA_MAX_CODED_FRAME_SIZE); fsize = FFMIN3(fsize, len, MPA_MAX_CODED_FRAME_SIZE);
start2 += fsize; start2 += fsize;
len -= fsize; len -= fsize;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment