diff options
Diffstat (limited to 'apps/codecs/libm4a/demux.c')
-rw-r--r-- | apps/codecs/libm4a/demux.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/codecs/libm4a/demux.c b/apps/codecs/libm4a/demux.c index 9f887b6b83..8c7189e158 100644 --- a/apps/codecs/libm4a/demux.c +++ b/apps/codecs/libm4a/demux.c | |||
@@ -771,12 +771,11 @@ int qtmovie_read(stream_t *file, demux_res_t *demux_res) | |||
771 | } | 771 | } |
772 | break; | 772 | break; |
773 | case MAKEFOURCC('m','d','a','t'): | 773 | case MAKEFOURCC('m','d','a','t'): |
774 | read_chunk_mdat(&qtmovie, chunk_len); | ||
775 | /* Keep track of start of stream in file - used for seeking */ | ||
776 | qtmovie.res->mdat_offset=stream_tell(qtmovie.stream); | ||
777 | /* There can be empty mdats before the real one. If so, skip them */ | 774 | /* There can be empty mdats before the real one. If so, skip them */ |
778 | if (qtmovie.res->mdat_len == 0) | 775 | if (chunk_len == 8) |
779 | break; | 776 | break; |
777 | read_chunk_mdat(&qtmovie, chunk_len); | ||
778 | qtmovie.res->mdat_offset=stream_tell(qtmovie.stream); | ||
780 | /* If we've already seen the format, assume there's nothing | 779 | /* If we've already seen the format, assume there's nothing |
781 | interesting after the mdat chunk (the file is "streamable"). | 780 | interesting after the mdat chunk (the file is "streamable"). |
782 | This avoids having to seek, which might cause rebuffering. */ | 781 | This avoids having to seek, which might cause rebuffering. */ |