summaryrefslogtreecommitdiff
path: root/src/h__Writer.cpp
diff options
context:
space:
mode:
authorjhurst <jhurst@cinecert.com>2018-10-03 18:15:32 +0000
committerjhurst <>2018-10-03 18:15:32 +0000
commit2102a29cb047b761ead7cd7e5941e7ef393e4c29 (patch)
tree16415ea2351c3e2b2f01975cea9d613bea1aec8f /src/h__Writer.cpp
parentfe4a6f8790279afbd571bdee34803097d0d6b88b (diff)
o Fixed bugs reported by Dolby:
bad assert test when writing GS partition unset frame count in ISXD unwrap bad UL when writing ISXF content packages
Diffstat (limited to 'src/h__Writer.cpp')
-rwxr-xr-xsrc/h__Writer.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/h__Writer.cpp b/src/h__Writer.cpp
index 97c6fc2..99d835a 100755
--- a/src/h__Writer.cpp
+++ b/src/h__Writer.cpp
@@ -193,7 +193,12 @@ ASDCP::AddDmsTrackGenericPartUtf8Text(Kumu::FileWriter& file_writer, MXF::OP1aHe
}
}
- assert(max_sid>1);
+ if ( max_sid == 0 )
+ {
+ DefaultLogSink().Error("Unable to add a GS Partition before the essence container has been established.\n");
+ return RESULT_FORMAT;
+ }
+
rip.PairArray.push_back(RIP::PartitionPair(max_sid + 1, file_writer.Tell()));
// Add new GSTBS linked to DMF