summaryrefslogtreecommitdiff
path: root/apps/codecs/libm4a/demux.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/libm4a/demux.c')
-rw-r--r--apps/codecs/libm4a/demux.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/codecs/libm4a/demux.c b/apps/codecs/libm4a/demux.c
index 34bc07556b..10972f8b1f 100644
--- a/apps/codecs/libm4a/demux.c
+++ b/apps/codecs/libm4a/demux.c
@@ -762,7 +762,11 @@ int qtmovie_read(stream_t *file, demux_res_t *demux_res)
762 read_chunk_mdat(&qtmovie, chunk_len); 762 read_chunk_mdat(&qtmovie, chunk_len);
763 /* Keep track of start of stream in file - used for seeking */ 763 /* Keep track of start of stream in file - used for seeking */
764 qtmovie.res->mdat_offset=stream_tell(qtmovie.stream); 764 qtmovie.res->mdat_offset=stream_tell(qtmovie.stream);
765 return 1; 765 /* There can be empty mdats before the real one. If so, skip them */
766 if (qtmovie.res->mdat_len > 0) {
767 return 1;
768 }
769 break;
766 770
767 /* these following atoms can be skipped !!!! */ 771 /* these following atoms can be skipped !!!! */
768 case MAKEFOURCC('f','r','e','e'): 772 case MAKEFOURCC('f','r','e','e'):