From b83203501ce44a89db12bb1facbd5ded2e8d4bef Mon Sep 17 00:00:00 2001 From: Oswald de Bruin Date: Mon, 3 Jun 2013 10:32:44 +0200 Subject: [PATCH] Last MP4 edits --- lib/mp4.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/mp4.cpp b/lib/mp4.cpp index 0681d335..8712c442 100644 --- a/lib/mp4.cpp +++ b/lib/mp4.cpp @@ -3972,6 +3972,7 @@ namespace MP4 { void STCO::setChunkOffset(uint32_t newChunkOffset, uint32_t no){ if (no + 1 > getEntryCount()){ + setEntryCount(no+1); for (int i = getEntryCount(); i < no; i++){ setInt32(0, 8 + i * 4);//filling undefined entries } @@ -4236,6 +4237,7 @@ namespace MP4 { } void VisualSampleEntry::setCompressorName(std::string newCompressorName){ + newCompressorName.resize(32, ' '); setString(newCompressorName,42); }