From 383a3b64cb617f77df0d1f13e431c455ebcecafb Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Tue, 21 Feb 2012 12:03:56 +0200 Subject: movdec: Restart parsing root-level atoms at the right spot MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If parsing moov+mdat in a non-seekable file, we currently abort parsing directly after parsing the header of the mdat atom. If we want to continue parsing later (if looking to parse later fragments), we need to skip past the content of the mdat atom, otherwise we end up parsing the content of the mdat atom as root level atoms. Signed-off-by: Martin Storsjö --- libavformat/isom.h | 1 + 1 file changed, 1 insertion(+) (limited to 'libavformat/isom.h') diff --git a/libavformat/isom.h b/libavformat/isom.h index 32c4b3fd1d..214af589a5 100644 --- a/libavformat/isom.h +++ b/libavformat/isom.h @@ -143,6 +143,7 @@ typedef struct MOVContext { unsigned trex_count; int itunes_metadata; ///< metadata are itunes style int chapter_track; + int64_t next_root_atom; ///< offset of the next root atom } MOVContext; int ff_mp4_read_descr_len(AVIOContext *pb); -- cgit v1.2.3