summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2004-04-29 01:18:15 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2004-04-29 01:18:15 +0000
commita23303695e58d2b451c954819009ef4437b1cdde (patch)
tree09a3d76be751f893d0a18109ef4f3223e3a0ae20
parentbd3d297b3186185d43dff5924f80545f736db446 (diff)
downloadrockbox-a23303695e58d2b451c954819009ef4437b1cdde.tar.gz
rockbox-a23303695e58d2b451c954819009ef4437b1cdde.zip
MP3 files with VBRI frames were parsed incorrectly, and the VBRI frame was partly fed to the MAS, giving playback glitches
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4560 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/mp3data.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/mp3data.c b/firmware/mp3data.c
index 5b56c6f6e4..5dbf49a6da 100644
--- a/firmware/mp3data.c
+++ b/firmware/mp3data.c
@@ -464,9 +464,11 @@ int get_mp3file_info(int fd, struct mp3info *info)
464 464
465 /* Now get the next frame to find out the real info about 465 /* Now get the next frame to find out the real info about
466 the mp3 stream */ 466 the mp3 stream */
467 header = find_next_frame(fd, &bytecount, 0x20000, 0); 467 header = find_next_frame(fd, &tmp, 0x20000, 0);
468 if(header == 0) 468 if(header == 0)
469 return -6; 469 return -6;
470
471 bytecount += tmp;
470 472
471 if(!mp3headerinfo(info, header)) 473 if(!mp3headerinfo(info, header))
472 return -7; 474 return -7;