aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2005-03-07 00:51:21 +0000
committerWarren Dukes <warren.dukes@gmail.com>2005-03-07 00:51:21 +0000
commit01b708bc13d082079beb794a11e138b2ad890f83 (patch)
treee7453f51cb04a6fb685757cbed574bc8455e99af /src/utils.c
parent32a1f952e85d5c8f2f2c19dffecc05b4ee8364b2 (diff)
downloadmpd-01b708bc13d082079beb794a11e138b2ad890f83.tar.gz
mpd-01b708bc13d082079beb794a11e138b2ad890f83.tar.xz
mpd-01b708bc13d082079beb794a11e138b2ad890f83.zip
add support for parsing ape tags in musepack files
git-svn-id: https://svn.musicpd.org/mpd/trunk@3030 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/utils.c')
-rw-r--r--src/utils.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/utils.c b/src/utils.c
index a057fa33f..32b079353 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -92,3 +92,11 @@ char * appendToString(char * dest, const char * src) {
return dest;
}
+
+unsigned long readLEuint32(const unsigned char *p)
+{
+ return ((unsigned long) p[0] << 0) |
+ ((unsigned long) p[1] << 8) |
+ ((unsigned long) p[2] << 16) | ((unsigned long) p[3] << 24);
+}
+