diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2005-08-23 12:52:59 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2005-08-23 12:52:59 +0000 |
commit | 984712f291273acd117662be03fc524babb751f7 (patch) | |
tree | 28fd0822117d6e95c9f9f5d49e3c0346aeea878d /apps/codecs/mpa.c | |
parent | 5760134f40efe4112cd089d1c77233fb66a818aa (diff) |
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
Diffstat (limited to 'apps/codecs/mpa.c')
-rw-r--r-- | apps/codecs/mpa.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/codecs/mpa.c b/apps/codecs/mpa.c index 8bfe376818..7beecd9edb 100644 --- a/apps/codecs/mpa.c +++ b/apps/codecs/mpa.c @@ -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; |