1
0
Fork 0
forked from len0rd/rockbox

Restore full support for id3v2 frames with multiple strings (like TXXX). Makes MP3 ReplayGain work again.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8196 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Magnus Holmgren 2005-12-07 22:59:09 +00:00
parent 149f31ca66
commit ec32c08a35

View file

@ -322,7 +322,6 @@ static int parseuser( struct mp3entry* entry, char* tag, int bufferpos )
/* At least part of the value was read, so we can safely try to
* parse it
*/
value = tag + desc_len + 1;
value_len = parse_replaygain(tag, value, entry, tag,
bufferpos - (tag - entry->id3v2buf));
@ -376,7 +375,7 @@ static int unicode_munge(char* string, char* utf8buf, int *len) {
(*len)--;
utf8 = iso_decode(str, utf8, -1, *len);
*utf8 = 0;
*len = strlen(utf8buf);
*len = utf8 - utf8buf;
break;
case 0x01: /* Unicode with or without BOM */
@ -427,13 +426,13 @@ static int unicode_munge(char* string, char* utf8buf, int *len) {
case 0x03: /* UTF-8 encoded string */
for(i=0; i < *len; i++)
utf8[i] = str[i+1];
*len = strlen(utf8buf);
(*len)--;
break;
default: /* Plain old string */
utf8 = iso_decode(str, utf8, -1, *len);
*utf8 = 0;
*len = strlen(utf8buf);
*len = utf8 - utf8buf;
break;
}
return 0;