[xiph-commits] r13606 - trunk/ezstream/src
moritz at svn.xiph.org
moritz at svn.xiph.org
Thu Aug 23 17:46:21 PDT 2007
Author: moritz
Date: 2007-08-23 17:46:21 -0700 (Thu, 23 Aug 2007)
New Revision: 13606
Modified:
trunk/ezstream/src/metadata.c
Log:
Fix native ID3v1 reading (no-op, since affected fields were not used.)
Modified: trunk/ezstream/src/metadata.c
===================================================================
--- trunk/ezstream/src/metadata.c 2007-08-24 00:08:24 UTC (rev 13605)
+++ trunk/ezstream/src/metadata.c 2007-08-24 00:46:21 UTC (rev 13606)
@@ -63,7 +63,7 @@
char trackName[30];
char artistName[30];
char albumName[30];
- char year[3];
+ char year[4];
char comment[30];
char genre;
};
@@ -176,8 +176,8 @@
if (strcmp(extension, ".mp3") == 0) {
memset(&id3tag, 0, sizeof(id3tag));
fseek(*filep, -128L, SEEK_END);
- fread(&id3tag, 1, 127, *filep);
- if (strncmp(id3tag.tag, "TAG", strlen("TAG")) == 0) {
+ fread(&id3tag, 1, sizeof(struct ID3Tag), *filep);
+ if (memcmp(id3tag.tag, "TAG", 3) == 0) {
if (strlen(id3tag.artistName) > 0)
md->artist = xstrdup(id3tag.artistName);
if (strlen(id3tag.trackName) > 0)
More information about the commits
mailing list