forked from len0rd/rockbox
Don't keep useless id3v2 or other leading tag data on the buffer, it could be large
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15465 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
6be390f210
commit
d02b5c744e
4 changed files with 10 additions and 9 deletions
|
|
@ -95,8 +95,7 @@ next_track:
|
|||
current_frequency = ci->id3->frequency;
|
||||
codec_set_replaygain(ci->id3);
|
||||
|
||||
ci->request_buffer(&size, ci->id3->first_frame_offset);
|
||||
ci->advance_buffer(size);
|
||||
ci->seek_buffer(ci->id3->first_frame_offset);
|
||||
|
||||
if (ci->id3->lead_trim >= 0 && ci->id3->tail_trim >= 0) {
|
||||
stop_skip = ci->id3->tail_trim - mpeg_latency[ci->id3->layer];
|
||||
|
|
|
|||
|
|
@ -68,8 +68,7 @@ next_track:
|
|||
|
||||
/* Skip id3v2 tags */
|
||||
if (ci->id3->first_frame_offset) {
|
||||
buf = ci->request_buffer(&bytesleft, ci->id3->first_frame_offset);
|
||||
ci->advance_buffer(ci->id3->first_frame_offset);
|
||||
ci->seek_buffer(ci->id3->first_frame_offset);
|
||||
}
|
||||
|
||||
/* Read the shorten & wave headers */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue