summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/metadata.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/metadata.c b/apps/metadata.c
index 42ae435aea..10c8877eb4 100644
--- a/apps/metadata.c
+++ b/apps/metadata.c
@@ -1914,9 +1914,7 @@ static bool get_spc_metadata(int fd, struct mp3entry* id3)
if (i==8) isbinary = false;
if(isbinary) {
- unsigned char * tbuf = buf;
-
- id3->year = tbuf[0] | (tbuf[1]<<8);
+ id3->year = buf[0] | (buf[1]<<8);
buf += 11;
length = (buf[0] | (buf[1]<<8) | (buf[2]<<16)) * 1000;