1
0
Fork 0
forked from len0rd/rockbox

MP4: Fix a sign error preventing some files from playing (e.g., if tagged by MusicBrainz).

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13973 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Magnus Holmgren 2007-07-24 20:40:10 +00:00
parent 22bc7de528
commit 277ee08703

View file

@ -426,7 +426,7 @@ static bool read_mp4_tags(int fd, struct mp3entry* id3,
if (sub_size > sizeof(tag_name) - 1)
{
read(fd, tag_name, sizeof(tag_name) - 1);
lseek(fd, sub_size - sizeof(tag_name) - 1, SEEK_CUR);
lseek(fd, sub_size - (sizeof(tag_name) - 1), SEEK_CUR);
tag_name[sizeof(tag_name) - 1] = 0;
}
else
@ -672,8 +672,8 @@ bool get_mp4_metadata(int fd, struct mp3entry* id3)
else
{
logf("MP4 metadata error");
DEBUGF("MP4 metadata error. errno %d, length %ld, frequency %ld, filesize %ld\n",
errno, id3->length, id3->frequency, id3->filesize);
DEBUGF("MP4 metadata error. errno %d, frequency %ld, filesize %ld\n",
errno, id3->frequency, id3->filesize);
return false;
}