movdec: Restart parsing root-level atoms at the right spot
authorMartin Storsjö <martin@martin.st>
Tue, 21 Feb 2012 10:03:56 +0000 (12:03 +0200)
committerMartin Storsjö <martin@martin.st>
Wed, 22 Feb 2012 08:39:14 +0000 (10:39 +0200)
commit383a3b64cb617f77df0d1f13e431c455ebcecafb
tree92413d79b7bb4ec297a048557037f0c71c713050
parentb5696ff2b872b3556a71fe3591c245b4caff08b5
movdec: Restart parsing root-level atoms at the right spot

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ö <martin@martin.st>
libavformat/isom.h
libavformat/mov.c