mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 13:15:18 -05:00
FS#11964. Rework replaygain handling to save metadata buffer and binsize. Remove string representation of replaygain and use a dedicated ftoa implementation for WPS/screen info.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29388 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
6510973223
commit
71ceac0b74
12 changed files with 65 additions and 158 deletions
|
|
@ -456,18 +456,8 @@ static int asf_parse_header(int fd, struct mp3entry* id3,
|
|||
lseek(fd, length, SEEK_CUR);
|
||||
}
|
||||
} else if (!strncmp("replaygain_", utf8buf, 11)) {
|
||||
char* value = id3buf;
|
||||
int buf_len = id3buf_remaining;
|
||||
int len;
|
||||
asf_utf16LEdecode(fd, length, &id3buf, &id3buf_remaining);
|
||||
len = parse_replaygain(utf8buf, value, id3,
|
||||
value, buf_len);
|
||||
|
||||
if (len == 0) {
|
||||
/* Don't need to keep the value */
|
||||
id3buf = value;
|
||||
id3buf_remaining = buf_len;
|
||||
}
|
||||
parse_replaygain(utf8buf, id3buf, id3);
|
||||
} else if (!strcmp("MusicBrainz/Track Id", utf8buf)) {
|
||||
id3->mb_track_id = id3buf;
|
||||
asf_utf16LEdecode(fd, length, &id3buf, &id3buf_remaining);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue