diff options
| author | jhurst <jhurst@cinecert.com> | 2018-08-07 17:15:16 +0000 |
|---|---|---|
| committer | jhurst <> | 2018-08-07 17:15:16 +0000 |
| commit | 34769789ae8e6450bc63488d4d032ab2acd17805 (patch) | |
| tree | 8fc40c856c4454ac3299e8cf7d8046ce3be8236a /src/h__Writer.cpp | |
| parent | bbfb1d262eedd04b1096bec54c848488ac233837 (diff) | |
added property GenericSoundEssenceDescriptor.ReferenceImageEditRate
Diffstat (limited to 'src/h__Writer.cpp')
| -rwxr-xr-x | src/h__Writer.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/h__Writer.cpp b/src/h__Writer.cpp index 4d11786..97c6fc2 100755 --- a/src/h__Writer.cpp +++ b/src/h__Writer.cpp @@ -133,6 +133,7 @@ ASDCP::AddDmsTrackGenericPartUtf8Text(Kumu::FileWriter& file_writer, MXF::OP1aHe StaticTrack_obj = 0; } + // find the Sequence associated with this Track if ( StaticTrack_obj ) { object_list.clear(); @@ -151,6 +152,7 @@ ASDCP::AddDmsTrackGenericPartUtf8Text(Kumu::FileWriter& file_writer, MXF::OP1aHe if ( Sequence_obj == 0 ) { + // this is the first insertion, create the static track assert(Dict); StaticTrack* static_track = new StaticTrack(Dict); header_part.AddChildObject(static_track); @@ -166,7 +168,7 @@ ASDCP::AddDmsTrackGenericPartUtf8Text(Kumu::FileWriter& file_writer, MXF::OP1aHe } assert(Sequence_obj); - // + // Create the DM segment and framework packs DMSegment* Segment = new DMSegment(Dict); header_part.AddChildObject(Segment); Sequence_obj->StructuralComponents.push_back(Segment->InstanceUID); @@ -180,8 +182,7 @@ ASDCP::AddDmsTrackGenericPartUtf8Text(Kumu::FileWriter& file_writer, MXF::OP1aHe Segment->DMFramework = dmf_obj->InstanceUID; GenRandomValue(dmf_obj->ObjectRef); - - // Create new SID in DMF + // Create a new SID on the RIP, located at the current file position ui32_t max_sid = 0; ASDCP::MXF::RIP::pair_iterator i; for ( i = rip.PairArray.begin(); i != rip.PairArray.end(); ++i ) @@ -192,6 +193,7 @@ ASDCP::AddDmsTrackGenericPartUtf8Text(Kumu::FileWriter& file_writer, MXF::OP1aHe } } + assert(max_sid>1); rip.PairArray.push_back(RIP::PartitionPair(max_sid + 1, file_writer.Tell())); // Add new GSTBS linked to DMF |
