Alex Bennee wrote:
2009/5/6 Vladimir Pantelic<[email protected]>:
Alex Bennee wrote:
That would be pathalogical. At the moment I've a fixed size array in
the codec that will deal with up to 10 mdat atoms in a file.
< snip>
do you really care about the mdat atoms? The offset data for the samples is
not mdat relative, so you don't need to keep the mdat info in memory, do
you?
To be honest I'm not sure. I'm kinda learning the MP4 container format
on the fly as I do this. If all the seek information is already
contained in the moov section and the offsets are relative to the
whole file then yes,
yes
I can just ensure we parse the full file before
playback and seek back to the start of the first mdat when we start
playing.
well, in theory, the 1st sample could be anywhere in the file, but most
likely of course at the start of the 1st mdat :-)