diff options
Diffstat (limited to 'apps/metadata/sid.c')
-rw-r--r-- | apps/metadata/sid.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/metadata/sid.c b/apps/metadata/sid.c index d4e6627778..50b879b56d 100644 --- a/apps/metadata/sid.c +++ b/apps/metadata/sid.c | |||
@@ -36,12 +36,11 @@ bool get_sid_metadata(int fd, struct mp3entry* id3) | |||
36 | { | 36 | { |
37 | /* Use the trackname part of the id3 structure as a temporary buffer */ | 37 | /* Use the trackname part of the id3 structure as a temporary buffer */ |
38 | unsigned char* buf = (unsigned char *)id3->path; | 38 | unsigned char* buf = (unsigned char *)id3->path; |
39 | int read_bytes; | ||
40 | char *p; | 39 | char *p; |
41 | 40 | ||
42 | 41 | ||
43 | if ((lseek(fd, 0, SEEK_SET) < 0) | 42 | if ((lseek(fd, 0, SEEK_SET) < 0) |
44 | || ((read_bytes = read(fd, buf, 0x80)) < 0x80)) | 43 | || (read(fd, buf, 0x80) < 0x80)) |
45 | { | 44 | { |
46 | return false; | 45 | return false; |
47 | } | 46 | } |
@@ -70,7 +69,7 @@ bool get_sid_metadata(int fd, struct mp3entry* id3) | |||
70 | /* Copy Album (assumed max 0x1f-0x05 letters + 1 zero byte) */ | 69 | /* Copy Album (assumed max 0x1f-0x05 letters + 1 zero byte) */ |
71 | id3->album = p; | 70 | id3->album = p; |
72 | buf[0x56+0x1f] = 0; | 71 | buf[0x56+0x1f] = 0; |
73 | p = iso_decode(&buf[0x5b], p, 0, strlen(&buf[0x5b])+1); | 72 | iso_decode(&buf[0x5b], p, 0, strlen(&buf[0x5b])+1); |
74 | 73 | ||
75 | id3->bitrate = 706; | 74 | id3->bitrate = 706; |
76 | id3->frequency = 44100; | 75 | id3->frequency = 44100; |