12345678910111213141516171819202122232425262728293031323334353637383940 |
- #include "mp4common.h"
- MP4HntiAtom::MP4HntiAtom()
- : MP4Atom("hnti")
- {
- }
- void MP4HntiAtom::Read()
- {
- MP4Atom* grandParent = m_pParentAtom->GetParentAtom();
- ASSERT(grandParent);
- if (ATOMID(grandParent->GetType()) == ATOMID("trak")) {
- ExpectChildAtom("sdp ", Optional, OnlyOne);
- } else {
- ExpectChildAtom("rtp ", Optional, OnlyOne);
- }
- MP4Atom::Read();
- }
|