diff options
Diffstat (limited to 'src/h__Writer.cpp')
| -rwxr-xr-x | src/h__Writer.cpp | 7 |
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 |
