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:
parent
22bc7de528
commit
277ee08703
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue