Fix replaygain for wma files which was broken since r29388.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30259 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e918b7b973
commit
a668072d9e
1 changed files with 2 additions and 1 deletions
|
@ -456,8 +456,9 @@ static int asf_parse_header(int fd, struct mp3entry* id3,
|
||||||
lseek(fd, length, SEEK_CUR);
|
lseek(fd, length, SEEK_CUR);
|
||||||
}
|
}
|
||||||
} else if (!strncmp("replaygain_", utf8buf, 11)) {
|
} else if (!strncmp("replaygain_", utf8buf, 11)) {
|
||||||
|
char *value = id3buf;
|
||||||
asf_utf16LEdecode(fd, length, &id3buf, &id3buf_remaining);
|
asf_utf16LEdecode(fd, length, &id3buf, &id3buf_remaining);
|
||||||
parse_replaygain(utf8buf, id3buf, id3);
|
parse_replaygain(utf8buf, value, id3);
|
||||||
} else if (!strcmp("MusicBrainz/Track Id", utf8buf)) {
|
} else if (!strcmp("MusicBrainz/Track Id", utf8buf)) {
|
||||||
id3->mb_track_id = id3buf;
|
id3->mb_track_id = id3buf;
|
||||||
asf_utf16LEdecode(fd, length, &id3buf, &id3buf_remaining);
|
asf_utf16LEdecode(fd, length, &id3buf, &id3buf_remaining);
|
||||||
|
|
Loading…
Reference in a new issue