diff options
Diffstat (limited to 'apps/metadata/aiff.c')
-rw-r--r-- | apps/metadata/aiff.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/metadata/aiff.c b/apps/metadata/aiff.c index 6c16a3c226..654f37cf98 100644 --- a/apps/metadata/aiff.c +++ b/apps/metadata/aiff.c | |||
@@ -40,7 +40,6 @@ bool get_aiff_metadata(int fd, struct mp3entry* id3) | |||
40 | unsigned long numChannels = 0; | 40 | unsigned long numChannels = 0; |
41 | unsigned long numSampleFrames = 0; | 41 | unsigned long numSampleFrames = 0; |
42 | unsigned long numbytes = 0; | 42 | unsigned long numbytes = 0; |
43 | int read_bytes; | ||
44 | bool is_aifc = false; | 43 | bool is_aifc = false; |
45 | 44 | ||
46 | if ((lseek(fd, 0, SEEK_SET) < 0) || (read(fd, &buf[0], 12) < 12) || | 45 | if ((lseek(fd, 0, SEEK_SET) < 0) || (read(fd, &buf[0], 12) < 12) || |
@@ -50,7 +49,7 @@ bool get_aiff_metadata(int fd, struct mp3entry* id3) | |||
50 | return false; | 49 | return false; |
51 | } | 50 | } |
52 | 51 | ||
53 | while((read_bytes = read(fd, &buf[0], 8)) == 8) | 52 | while (read(fd, &buf[0], 8) == 8) |
54 | { | 53 | { |
55 | size_t size = get_long_be(&buf[4]); /* chunkSize */ | 54 | size_t size = get_long_be(&buf[4]); /* chunkSize */ |
56 | 55 | ||