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 | |
parent | 5760134f40efe4112cd089d1c77233fb66a818aa (diff) | |
download | rockbox-984712f291273acd117662be03fc524babb751f7.tar.gz rockbox-984712f291273acd117662be03fc524babb751f7.zip |
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')
-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) | |||
171 | 171 | ||
172 | samplesdone = ((int64_t) (ci->seek_time - 1)) | 172 | samplesdone = ((int64_t) (ci->seek_time - 1)) |
173 | * current_frequency / 1000; | 173 | * current_frequency / 1000; |
174 | newpos = ci->mp3_get_filepos(ci->seek_time-1); | 174 | newpos = ci->mp3_get_filepos(ci->seek_time-1) + |
175 | ci->id3->first_frame_offset; | ||
175 | 176 | ||
176 | if (!ci->seek_buffer(newpos)) { | 177 | if (!ci->seek_buffer(newpos)) { |
177 | goto next_track; | 178 | goto next_track; |