mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
fsize is 12 bits according to specs
Originally committed as revision 12984 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
5be25fc133
commit
cd3289650a
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user