12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- #include "mp4common.h"
- MP4FreeAtom::MP4FreeAtom()
- : MP4Atom("free")
- {
- }
- void MP4FreeAtom::Read()
- {
- Skip();
- }
- void MP4FreeAtom::Write()
- {
- ASSERT(m_pFile);
- bool use64 = (GetSize() > (0xFFFFFFFF - 8));
- BeginWrite(use64);
- #if 1
- for (uint64_t ix = 0; ix < GetSize(); ix++) {
- m_pFile->WriteUInt8(0);
- }
- #else
- m_pFile->SetPosition(m_pFile->GetPosition() + GetSize());
- #endif
- FinishWrite(use64);
- }
|