diff options
author | Sean Bartell <wingedtachikoma@gmail.com> | 2011-06-17 00:49:54 -0400 |
---|---|---|
committer | Nils Wallménius <nils@rockbox.org> | 2012-03-03 16:41:49 +0100 |
commit | 26fc31ae935c431ed0d2eb7786615901b4ea090d (patch) | |
tree | c8fe5a98f44ef6676d0c27bccf097ffbd3d2486c /apps/metadata/metadata_common.c | |
parent | 693af46f6de65012828a621ab07573096857ab64 (diff) | |
download | rockbox-26fc31ae935c431ed0d2eb7786615901b4ea090d.tar.gz rockbox-26fc31ae935c431ed0d2eb7786615901b4ea090d.zip |
Add the warble test program.
Warble uses Rockbox's codecs to play files with SDL or convert them to
WAV or raw formats. It also prints metadata and supports some of the DSP
effects. In the future, warble could be used to implement an automated
test suite for codecs, metadata, and DSP.
Change-Id: Ife1a63d2354496016277bfcbae4a9c23423ebd86
Reviewed-on: http://gerrit.rockbox.org/135
Reviewed-by: Nils Wallménius <nils@rockbox.org>
Tested-by: Nils Wallménius <nils@rockbox.org>
Diffstat (limited to 'apps/metadata/metadata_common.c')
-rw-r--r-- | apps/metadata/metadata_common.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/apps/metadata/metadata_common.c b/apps/metadata/metadata_common.c index 781123717a..e861644025 100644 --- a/apps/metadata/metadata_common.c +++ b/apps/metadata/metadata_common.c | |||
@@ -29,7 +29,6 @@ | |||
29 | #include "metadata_common.h" | 29 | #include "metadata_common.h" |
30 | #include "metadata_parsers.h" | 30 | #include "metadata_parsers.h" |
31 | #include "replaygain.h" | 31 | #include "replaygain.h" |
32 | #include "misc.h" | ||
33 | 32 | ||
34 | /* Read a string from the file. Read up to size bytes, or, if eos != -1, | 33 | /* Read a string from the file. Read up to size bytes, or, if eos != -1, |
35 | * until the eos character is found (eos is not stored in buf, unless it is | 34 | * until the eos character is found (eos is not stored in buf, unless it is |
@@ -202,7 +201,10 @@ uint32_t get_itunes_int32(char* value, int count) | |||
202 | 201 | ||
203 | while (count-- > 0) | 202 | while (count-- > 0) |
204 | { | 203 | { |
205 | value = skip_whitespace(value); | 204 | while (isspace(*value)) |
205 | { | ||
206 | value++; | ||
207 | } | ||
206 | 208 | ||
207 | while (*value && !isspace(*value)) | 209 | while (*value && !isspace(*value)) |
208 | { | 210 | { |
@@ -210,7 +212,10 @@ uint32_t get_itunes_int32(char* value, int count) | |||
210 | } | 212 | } |
211 | } | 213 | } |
212 | 214 | ||
213 | value = skip_whitespace(value); | 215 | while (isspace(*value)) |
216 | { | ||
217 | value++; | ||
218 | } | ||
214 | 219 | ||
215 | while (*value && ((c = strchr(hexdigits, toupper(*value))) != NULL)) | 220 | while (*value && ((c = strchr(hexdigits, toupper(*value))) != NULL)) |
216 | { | 221 | { |