diff options
Diffstat (limited to 'apps/metadata/mp4.c')
-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 c5a525d9c5..cd6eda428f 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, | |||
681 | break; | 681 | break; |
682 | 682 | ||
683 | case MP4_mdat: | 683 | case MP4_mdat: |
684 | /* Some AAC files appear to contain additional empty mdat chunks. | ||
685 | Ignore them. */ | ||
686 | if(size == 0) | ||
687 | break; | ||
684 | id3->filesize = size; | 688 | id3->filesize = size; |
685 | if(id3->samples > 0) { | 689 | if(id3->samples > 0) { |
686 | /* We've already seen the moov chunk. */ | 690 | /* We've already seen the moov chunk. */ |