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 | |
| parent | 693af46f6de65012828a621ab07573096857ab64 (diff) | |
| download | rockbox-26fc31ae935c431ed0d2eb7786615901b4ea090d.zip rockbox-26fc31ae935c431ed0d2eb7786615901b4ea090d.tar.gz rockbox-26fc31ae935c431ed0d2eb7786615901b4ea090d.tar.bz2 rockbox-26fc31ae935c431ed0d2eb7786615901b4ea090d.tar.xz | |
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')
| -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 7811237..e861644 100644 --- a/apps/metadata/metadata_common.c +++ b/apps/metadata/metadata_common.c @@ -29,7 +29,6 @@ #include "metadata_common.h" #include "metadata_parsers.h" #include "replaygain.h" -#include "misc.h" /* Read a string from the file. Read up to size bytes, or, if eos != -1, * 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) while (count-- > 0) { - value = skip_whitespace(value); + while (isspace(*value)) + { + value++; + } while (*value && !isspace(*value)) { @@ -210,7 +212,10 @@ uint32_t get_itunes_int32(char* value, int count) } } - value = skip_whitespace(value); + while (isspace(*value)) + { + value++; + } while (*value && ((c = strchr(hexdigits, toupper(*value))) != NULL)) { |