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:
parent
5760134f40
commit
984712f291
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue