movdec: Don't parse all fragments if ignidx is set
authorMartin Storsjö <martin@martin.st>
Tue, 21 Feb 2012 10:16:18 +0000 (12:16 +0200)
committerMartin Storsjö <martin@martin.st>
Wed, 22 Feb 2012 08:39:15 +0000 (10:39 +0200)
commitaa96d433e24cde44bf8009c809c6f41308ff8fd4
treeea670bd866c81515ae42112ea3aafd6e31c486ae
parent383a3b64cb617f77df0d1f13e431c455ebcecafb
movdec: Don't parse all fragments if ignidx is set

In nonseekable files, we already stop parsing the toplevel atoms
after finding moov and one mdat. In large seekable files (or files
that are seekable, but slowly, e.g. http), reading all the fragments
at the start can take a considerable amount of time. This allows
opting out from this behaviour.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/mov.c