diff options
author | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-02-02 09:28:48 +0000 |
---|---|---|
committer | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-02-02 09:28:48 +0000 |
commit | 0a93396cdeab4eb96c7e21531a2d9e2dfde15a2b (patch) | |
tree | 3b246a0443be7c2ec462125ba7f38638af3ac563 /apps/metadata/mp4.c | |
parent | e3d84ba22e9610c2c6aec90d6179aa42a91be173 (diff) | |
download | rockbox-0a93396cdeab4eb96c7e21531a2d9e2dfde15a2b.tar.gz rockbox-0a93396cdeab4eb96c7e21531a2d9e2dfde15a2b.zip |
Do not parse into 'ilst' atom if size is 0. Fixes playability issue in FS#11916.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29185 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/metadata/mp4.c')
-rw-r--r-- | apps/metadata/mp4.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/metadata/mp4.c b/apps/metadata/mp4.c index b3ff348fc5..a59b3f9819 100644 --- a/apps/metadata/mp4.c +++ b/apps/metadata/mp4.c | |||
@@ -596,7 +596,8 @@ static bool read_mp4_container(int fd, struct mp3entry* id3, | |||
596 | break; | 596 | break; |
597 | 597 | ||
598 | case MP4_ilst: | 598 | case MP4_ilst: |
599 | if (handler == MP4_mdir) | 599 | /* We need at least a size of 8 to read the next atom. */ |
600 | if (handler == MP4_mdir && size>8) | ||
600 | { | 601 | { |
601 | rc = read_mp4_tags(fd, id3, size); | 602 | rc = read_mp4_tags(fd, id3, size); |
602 | size = 0; | 603 | size = 0; |