summaryrefslogtreecommitdiff
path: root/apps/metadata/asf.c
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2009-11-18 17:30:42 +0000
committerNils Wallménius <nils@rockbox.org>2009-11-18 17:30:42 +0000
commit2e28c1853ba5517ad1964da80a7914f348231c4c (patch)
treec28373a100cd69becf5b240d24c6c8d2a1140add /apps/metadata/asf.c
parent556daaf34a1222a872827d99827feb15e3d6d19c (diff)
Unify fourcc macro and some style changes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23664 a1c6a512-1295-4272-9138-f99709370657
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)
uint32_t tmp32;
uint64_t tmp64;
- if (type==3) {
+ if (type == 3) {
read_uint32le(fd, &tmp32);
lseek(fd,length - 4,SEEK_CUR);
return (int)tmp32;
- } else if (type==4) {
+ } else if (type == 4) {
read_uint64le(fd, &tmp64);
lseek(fd,length - 8,SEEK_CUR);
return (int)tmp64;
@@ -430,19 +430,19 @@ static int asf_parse_header(int fd, struct mp3entry* id3,
} else {
lseek(fd, length, SEEK_CUR);
}
- } else if ((!strcmp("WM/Genre",utf8buf)) && (type == 0)) {
+ } else if ((!strcmp("WM/Genre", utf8buf)) && (type == 0)) {
id3->genre_string = id3buf;
asf_utf16LEdecode(fd, length, &id3buf, &id3buf_remaining);
- } else if ((!strcmp("WM/AlbumTitle",utf8buf)) && (type == 0)) {
+ } else if ((!strcmp("WM/AlbumTitle", utf8buf)) && (type == 0)) {
id3->album = id3buf;
asf_utf16LEdecode(fd, length, &id3buf, &id3buf_remaining);
- } else if ((!strcmp("WM/AlbumArtist",utf8buf)) && (type == 0)) {
+ } else if ((!strcmp("WM/AlbumArtist", utf8buf)) && (type == 0)) {
id3->albumartist = id3buf;
asf_utf16LEdecode(fd, length, &id3buf, &id3buf_remaining);
- } else if ((!strcmp("WM/Composer",utf8buf)) && (type == 0)) {
+ } else if ((!strcmp("WM/Composer", utf8buf)) && (type == 0)) {
id3->composer = id3buf;
asf_utf16LEdecode(fd, length, &id3buf, &id3buf_remaining);
- } else if (!strcmp("WM/Year",utf8buf)) {
+ } else if (!strcmp("WM/Year", utf8buf)) {
if (type == 0) {
id3->year_string = id3buf;
asf_utf16LEdecode(fd, length, &id3buf, &id3buf_remaining);