summaryrefslogtreecommitdiff
path: root/lib/rbcodec/metadata/mp4.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rbcodec/metadata/mp4.c')
-rw-r--r--lib/rbcodec/metadata/mp4.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rbcodec/metadata/mp4.c b/lib/rbcodec/metadata/mp4.c
index 6973d3a314..35f4e3bfda 100644
--- a/lib/rbcodec/metadata/mp4.c
+++ b/lib/rbcodec/metadata/mp4.c
@@ -758,7 +758,8 @@ static bool read_mp4_container(int fd, struct mp3entry* id3,
758 Ignore them. */ 758 Ignore them. */
759 if(size == 0) 759 if(size == 0)
760 break; 760 break;
761 id3->filesize = size; 761 /* mdat chunks accumulate! */
762 id3->filesize += size;
762 if(id3->samples > 0) { 763 if(id3->samples > 0) {
763 /* We've already seen the moov chunk. */ 764 /* We've already seen the moov chunk. */
764 done = true; 765 done = true;