diff options
author | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-02-24 19:10:59 +0000 |
---|---|---|
committer | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-02-24 19:10:59 +0000 |
commit | 71ceac0b740398050af4f21b56acd5b31e2520f0 (patch) | |
tree | da550f14a3c81f62aceae698c8b459287d201a01 /apps/metadata/asf.c | |
parent | 65109732230849eeb9eec2f56f9e046ad6b476c3 (diff) | |
download | rockbox-71ceac0b740398050af4f21b56acd5b31e2520f0.tar.gz rockbox-71ceac0b740398050af4f21b56acd5b31e2520f0.zip |
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
Diffstat (limited to 'apps/metadata/asf.c')
-rw-r--r-- | apps/metadata/asf.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/apps/metadata/asf.c b/apps/metadata/asf.c index c445e485a2..56d5c87f9d 100644 --- a/apps/metadata/asf.c +++ b/apps/metadata/asf.c | |||
@@ -456,18 +456,8 @@ static int asf_parse_header(int fd, struct mp3entry* id3, | |||
456 | lseek(fd, length, SEEK_CUR); | 456 | lseek(fd, length, SEEK_CUR); |
457 | } | 457 | } |
458 | } else if (!strncmp("replaygain_", utf8buf, 11)) { | 458 | } else if (!strncmp("replaygain_", utf8buf, 11)) { |
459 | char* value = id3buf; | ||
460 | int buf_len = id3buf_remaining; | ||
461 | int len; | ||
462 | asf_utf16LEdecode(fd, length, &id3buf, &id3buf_remaining); | 459 | asf_utf16LEdecode(fd, length, &id3buf, &id3buf_remaining); |
463 | len = parse_replaygain(utf8buf, value, id3, | 460 | parse_replaygain(utf8buf, id3buf, id3); |
464 | value, buf_len); | ||
465 | |||
466 | if (len == 0) { | ||
467 | /* Don't need to keep the value */ | ||
468 | id3buf = value; | ||
469 | id3buf_remaining = buf_len; | ||
470 | } | ||
471 | } else if (!strcmp("MusicBrainz/Track Id", utf8buf)) { | 461 | } else if (!strcmp("MusicBrainz/Track Id", utf8buf)) { |
472 | id3->mb_track_id = id3buf; | 462 | id3->mb_track_id = id3buf; |
473 | asf_utf16LEdecode(fd, length, &id3buf, &id3buf_remaining); | 463 | asf_utf16LEdecode(fd, length, &id3buf, &id3buf_remaining); |