OSDN Git Service

mxfdec: Hybrid demuxing/seeking solution
authorTomas Härdin <tomas.hardin@codemill.se>
Fri, 16 Dec 2011 09:53:41 +0000 (10:53 +0100)
committerTomas Härdin <tomas.hardin@codemill.se>
Fri, 16 Dec 2011 10:54:03 +0000 (11:54 +0100)
commit2eba8da67572c7e9fa06191fd86312ae42116630
treea29b1cddc315fa796699c1322760365452d83305
parent36c305f9db0ed9e0a4313f11683ea0de7efc496f
mxfdec: Hybrid demuxing/seeking solution

This uses the old demuxing code for OP1a and separate demuxing code for OPAtom.
Timestamp output is added to the old demuxing code.
The seeking code is made to seek to the start of the desired EditUnit only,
from which the normal demuxing code takes over (if OP1a). This means we don't
use delta entries or slices, only StreamOffsets.
OPAtom seeking basically works like before.
This also makes D-10 seeking behave the same way as OP1a and OPAtom. In other
words, we allow seeking before the start or past the end for D-10 too.
This fixes ticket #746.
libavformat/mxfdec.c
tests/ref/seek/lavf_mxf
tests/ref/seek/lavf_mxf_d10