[Stable] Interface contains an UpdateContents() function, which updates all the contents of the boxes

This commit is contained in:
Erik Zandvliet 2011-01-23 15:52:20 +01:00
parent 1d56214cd1
commit 1c69d2dbc8
22 changed files with 40 additions and 23 deletions

View file

@ -24,11 +24,10 @@ void Box_stsc::AddEntry( uint32_t FirstChunk, uint32_t SamplesPerChunk, uint32_t
Entries[Offset].FirstChunk = FirstChunk;
Entries[Offset].SamplesPerChunk = SamplesPerChunk;
Entries[Offset].SampleDescIndex = SampleDescIndex;
WriteEntries( );
}
void Box_stsc::WriteEntries( ) {
void Box_stsc::WriteContent( ) {
Container->ResetPayload();
SetReserved( );
if(!Entries.empty()) {