summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-09-19 08:16:56 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-09-19 08:16:56 +0000
commit37c1192753038816e77dc59b04e5c068d4bf78e8 (patch)
treeafa67a625acbf047bbba651d26557d7dfb4308aa
parentf03141477ae61da9690b134a4395bd45abbaad5f (diff)
downloadrockbox-37c1192753038816e77dc59b04e5c068d4bf78e8.tar.gz
rockbox-37c1192753038816e77dc59b04e5c068d4bf78e8.zip
ASAP parse_sap_header() : remove write only variables
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28111 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/metadata/asap.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/apps/metadata/asap.c b/apps/metadata/asap.c
index ea9b201bff..61f651b995 100644
--- a/apps/metadata/asap.c
+++ b/apps/metadata/asap.c
@@ -137,11 +137,8 @@ static bool parse_sap_header(int fd, struct mp3entry* id3, int file_len)
137 int defSong = 0; 137 int defSong = 0;
138 int numChannels = 1; 138 int numChannels = 1;
139 int durations[MAX_SONGS]; 139 int durations[MAX_SONGS];
140 int loops[MAX_SONGS]; 140 for (i = 0; i < MAX_SONGS; i++)
141 for (i = 0; i < MAX_SONGS; i++) {
142 durations[i] = -1; 141 durations[i] = -1;
143 loops[i] = 0;
144 }
145 142
146 /* use id3v2 buffer for our strings */ 143 /* use id3v2 buffer for our strings */
147 char* buffer = id3->id3v2buf; 144 char* buffer = id3->id3v2buf;
@@ -225,10 +222,7 @@ static bool parse_sap_header(int fd, struct mp3entry* id3, int file_len)
225 int durationTemp = ASAP_ParseDuration(p); 222 int durationTemp = ASAP_ParseDuration(p);
226 if (durationTemp < 0 || duration_index >= MAX_SONGS) 223 if (durationTemp < 0 || duration_index >= MAX_SONGS)
227 return false; 224 return false;
228 durations[duration_index] = durationTemp; 225 durations[duration_index++] = durationTemp;
229 if (strstr(p, "LOOP") != NULL)
230 loops[duration_index] = 1;
231 duration_index++;
232 } 226 }
233 } 227 }
234 228