diff options
| author | Michael Giacomelli <giac2000@hotmail.com> | 2010-01-02 21:02:13 +0000 |
|---|---|---|
| committer | Michael Giacomelli <giac2000@hotmail.com> | 2010-01-02 21:02:13 +0000 |
| commit | ce8640d7b8bf62c0b42823ff76c4387507353dae (patch) | |
| tree | 1d53b22b0ae2d53b526196b4b8092f73a43e7095 /apps/metadata | |
| parent | 008c368c87873615ccbe8bc0b3482d93ae15779d (diff) | |
| download | rockbox-ce8640d7b8bf62c0b42823ff76c4387507353dae.zip rockbox-ce8640d7b8bf62c0b42823ff76c4387507353dae.tar.gz rockbox-ce8640d7b8bf62c0b42823ff76c4387507353dae.tar.bz2 rockbox-ce8640d7b8bf62c0b42823ff76c4387507353dae.tar.xz | |
Second part of FS#10832 by Juliusz Chroboczek. Ignore empty mdat chunks in mp4 files.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24148 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/metadata')
| -rw-r--r-- | apps/metadata/mp4.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/metadata/mp4.c b/apps/metadata/mp4.c index c5a525d..cd6eda4 100644 --- a/apps/metadata/mp4.c +++ b/apps/metadata/mp4.c @@ -681,6 +681,10 @@ static bool read_mp4_container(int fd, struct mp3entry* id3, break; case MP4_mdat: + /* Some AAC files appear to contain additional empty mdat chunks. + Ignore them. */ + if(size == 0) + break; id3->filesize = size; if(id3->samples > 0) { /* We've already seen the moov chunk. */ |