summaryrefslogtreecommitdiff
path: root/src/as-02-wrap.cpp
diff options
context:
space:
mode:
authorjhurst <jhurst@cinecert.com>2018-03-25 22:54:20 +0000
committerjhurst <>2018-03-25 22:54:20 +0000
commitffc88e36d1b15a863bad6577dee7d59254edfa22 (patch)
treef46ee12919d9eb6690815eb01f48e3fae73ddfbb /src/as-02-wrap.cpp
parent40ecb821a29d1049e0a69149b20e552c7fbb0ae0 (diff)
o Fixed MinorVersion error (was "2", is now "3") when writing BodyPartition packs preceding partitions in AS-02 files.
o Fixed AS-DCP timed text writer, was creating DM Segment instead of SourceClip in the source package. o Changed SourcePackage timecode track start to 00:00:00:00 (was 01:00:00:00) o Fixed reference counting errors in asdcp.MXFWriter and asdcp.TimedTextWriter that were causing asdcp.MXFReader and asdcp.TimedTextReader (respectively) to remain allocated after all references had been deleted, thus leaking file handles and memory. o Fixed broken arg parser (missing format token in format string for "EssenceType" argument) in TimedTextWriter
Diffstat (limited to 'src/as-02-wrap.cpp')
-rwxr-xr-xsrc/as-02-wrap.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/as-02-wrap.cpp b/src/as-02-wrap.cpp
index 8a32d71..49b552f 100755
--- a/src/as-02-wrap.cpp
+++ b/src/as-02-wrap.cpp
@@ -707,7 +707,7 @@ public:
}
}
- if ( help_flag || version_flag )
+ if ( help_flag || version_flag || show_ul_values_flag )
return;
if ( filenames.size() < 2 )
@@ -1110,8 +1110,7 @@ write_timed_text_file(CommandOptions& Options)
Kumu::FortunaRNG RNG;
// set up essence parser
- Result_t result = Parser.OpenRead(Options.filenames.front().c_str(),
- Options.profile_name);
+ Result_t result = Parser.OpenRead(Options.filenames.front());
// set up MXF writer
if ( ASDCP_SUCCESS(result) )
@@ -1121,6 +1120,11 @@ write_timed_text_file(CommandOptions& Options)
TDesc.ContainerDuration = Options.duration;
FrameBuffer.Capacity(Options.fb_size);
+ if ( ! Options.profile_name.empty() )
+ {
+ TDesc.NamespaceName = Options.profile_name;
+ }
+
if ( Options.verbose_flag )
{
fputs("IMF Timed-Text Descriptor:\n", stderr);