summaryrefslogtreecommitdiff
path: root/apps/metadata/asf.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/metadata/asf.c')
-rw-r--r--apps/metadata/asf.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/metadata/asf.c b/apps/metadata/asf.c
index 611cc2aca3..9362485eb7 100644
--- a/apps/metadata/asf.c
+++ b/apps/metadata/asf.c
@@ -140,11 +140,11 @@ static int asf_intdecode(int fd, int type, int length)
140 uint32_t tmp32; 140 uint32_t tmp32;
141 uint64_t tmp64; 141 uint64_t tmp64;
142 142
143 if (type==3) { 143 if (type == 3) {
144 read_uint32le(fd, &tmp32); 144 read_uint32le(fd, &tmp32);
145 lseek(fd,length - 4,SEEK_CUR); 145 lseek(fd,length - 4,SEEK_CUR);
146 return (int)tmp32; 146 return (int)tmp32;
147 } else if (type==4) { 147 } else if (type == 4) {
148 read_uint64le(fd, &tmp64); 148 read_uint64le(fd, &tmp64);
149 lseek(fd,length - 8,SEEK_CUR); 149 lseek(fd,length - 8,SEEK_CUR);
150 return (int)tmp64; 150 return (int)tmp64;
@@ -430,19 +430,19 @@ static int asf_parse_header(int fd, struct mp3entry* id3,
430 } else { 430 } else {
431 lseek(fd, length, SEEK_CUR); 431 lseek(fd, length, SEEK_CUR);
432 } 432 }
433 } else if ((!strcmp("WM/Genre",utf8buf)) && (type == 0)) { 433 } else if ((!strcmp("WM/Genre", utf8buf)) && (type == 0)) {
434 id3->genre_string = id3buf; 434 id3->genre_string = id3buf;
435 asf_utf16LEdecode(fd, length, &id3buf, &id3buf_remaining); 435 asf_utf16LEdecode(fd, length, &id3buf, &id3buf_remaining);
436 } else if ((!strcmp("WM/AlbumTitle",utf8buf)) && (type == 0)) { 436 } else if ((!strcmp("WM/AlbumTitle", utf8buf)) && (type == 0)) {
437 id3->album = id3buf; 437 id3->album = id3buf;
438 asf_utf16LEdecode(fd, length, &id3buf, &id3buf_remaining); 438 asf_utf16LEdecode(fd, length, &id3buf, &id3buf_remaining);
439 } else if ((!strcmp("WM/AlbumArtist",utf8buf)) && (type == 0)) { 439 } else if ((!strcmp("WM/AlbumArtist", utf8buf)) && (type == 0)) {
440 id3->albumartist = id3buf; 440 id3->albumartist = id3buf;
441 asf_utf16LEdecode(fd, length, &id3buf, &id3buf_remaining); 441 asf_utf16LEdecode(fd, length, &id3buf, &id3buf_remaining);
442 } else if ((!strcmp("WM/Composer",utf8buf)) && (type == 0)) { 442 } else if ((!strcmp("WM/Composer", utf8buf)) && (type == 0)) {
443 id3->composer = id3buf; 443 id3->composer = id3buf;
444 asf_utf16LEdecode(fd, length, &id3buf, &id3buf_remaining); 444 asf_utf16LEdecode(fd, length, &id3buf, &id3buf_remaining);
445 } else if (!strcmp("WM/Year",utf8buf)) { 445 } else if (!strcmp("WM/Year", utf8buf)) {
446 if (type == 0) { 446 if (type == 0) {
447 id3->year_string = id3buf; 447 id3->year_string = id3buf;
448 asf_utf16LEdecode(fd, length, &id3buf, &id3buf_remaining); 448 asf_utf16LEdecode(fd, length, &id3buf, &id3buf_remaining);