summaryrefslogtreecommitdiff
path: root/junklib.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-09-23 22:33:37 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-09-23 22:33:37 +0200
commitf91d372e4c3d08d59b6633560af491d56608cfcc (patch)
tree2f9e04432d4970579adcd594a6b3a96b6e715200 /junklib.c
parent03094732886c4bdad1da77cbb506d54101d5728a (diff)
fixed id3v2 reader (again)
Diffstat (limited to 'junklib.c')
-rw-r--r--junklib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/junklib.c b/junklib.c
index 43e3fb0c..630fbbf7 100644
--- a/junklib.c
+++ b/junklib.c
@@ -753,7 +753,7 @@ junk_read_id3v2 (playItem_t *it, FILE *fp) {
err = 1;
break;
}
- uint32_t sz = (readptr[3] << 0) | (readptr[2] << 8) | (readptr[1] << 16) | (readptr[0] << 24);
+ uint32_t sz = (readptr[3] << 0) | (readptr[2] << 7) | (readptr[1] << 14) | (readptr[0] << 21);
readptr += 4;
trace ("got frame %s, size %d, pos %d, tagsize %d\n", frameid, sz, readptr-tag, size);
if (readptr - tag >= size - sz) {