1
0
Fork 0
forked from len0rd/rockbox

iriver: The MP3 codec didn't take the ID3 tag size into account when seeking

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7391 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2005-08-23 12:52:59 +00:00
parent 5760134f40
commit 984712f291

View file

@ -171,7 +171,8 @@ enum codec_status codec_start(struct codec_api* api)
samplesdone = ((int64_t) (ci->seek_time - 1))
* current_frequency / 1000;
newpos = ci->mp3_get_filepos(ci->seek_time-1);
newpos = ci->mp3_get_filepos(ci->seek_time-1) +
ci->id3->first_frame_offset;
if (!ci->seek_buffer(newpos)) {
goto next_track;