diff options
| author | jhurst <jhurst@cinecert.com> | 2006-04-05 23:48:39 +0000 |
|---|---|---|
| committer | jhurst <> | 2006-04-05 23:48:39 +0000 |
| commit | 34464c5616c053942cf7bdbb919bd8845cb0ceae (patch) | |
| tree | e90794a5209c5d98c5c2502e73a825c2845651dd /src | |
| parent | bfedf725dac9d13f3a02fe69f45c302ab29d2b1e (diff) | |
compatibility fixes (and a stupidbug)
Diffstat (limited to 'src')
| -rwxr-xr-x | src/AS_DCP_internal.h | 2 | ||||
| -rwxr-xr-x | src/MXF.h | 4 | ||||
| -rwxr-xr-x | src/MXFTypes.cpp | 18 | ||||
| -rwxr-xr-x | src/h__Writer.cpp | 4 |
4 files changed, 16 insertions, 12 deletions
diff --git a/src/AS_DCP_internal.h b/src/AS_DCP_internal.h index 4a00ba0..b59df2c 100755 --- a/src/AS_DCP_internal.h +++ b/src/AS_DCP_internal.h @@ -103,7 +103,7 @@ namespace ASDCP ui64_t m_EssenceStart; WriterInfo m_Info; ASDCP::FrameBuffer m_CtFrameBuf; - fpos_t m_LastPosition; + Kumu::fpos_t m_LastPosition; h__Reader(); virtual ~h__Reader(); @@ -327,7 +327,7 @@ namespace ASDCP ASDCP_NO_COPY_CONSTRUCT(OPAtomIndexFooter); public: - fpos_t m_ECOffset; + Kumu::fpos_t m_ECOffset; IPrimerLookup* m_Lookup; OPAtomIndexFooter(); @@ -339,7 +339,7 @@ namespace ASDCP virtual Result_t Lookup(ui32_t frame_num, IndexTableSegment::IndexEntry&); virtual void PushIndexEntry(const IndexTableSegment::IndexEntry&); virtual void SetIndexParamsCBR(IPrimerLookup* lookup, ui32_t size, const Rational& Rate); - virtual void SetIndexParamsVBR(IPrimerLookup* lookup, const Rational& Rate, fpos_t offset); + virtual void SetIndexParamsVBR(IPrimerLookup* lookup, const Rational& Rate, Kumu::fpos_t offset); }; } // namespace MXF diff --git a/src/MXFTypes.cpp b/src/MXFTypes.cpp index c2352fd..ba9d7ea 100755 --- a/src/MXFTypes.cpp +++ b/src/MXFTypes.cpp @@ -606,15 +606,19 @@ ASDCP::MXF::TLVWriter::WriteObject(const MDDEntry& Entry, Kumu::IArchive* Object Result_t result = WriteTag(Entry); - // write a temp length - byte_t* l_p = CurrentData(); + if ( ASDCP_SUCCESS(result) ) + { + // write a temp length + byte_t* l_p = CurrentData(); - if ( ! MemIOWriter::WriteUi16BE(0) ) return RESULT_KLV_CODING; + if ( ! MemIOWriter::WriteUi16BE(0) ) return RESULT_KLV_CODING; - ui32_t before = Length(); - if ( ! Object->Archive(this) ) return RESULT_KLV_CODING; - Kumu::i2p<ui16_t>(KM_i16_BE( Length() - before), l_p); - return RESULT_OK; + ui32_t before = Length(); + if ( ! Object->Archive(this) ) return RESULT_KLV_CODING; + Kumu::i2p<ui16_t>(KM_i16_BE( Length() - before), l_p); + } + + return result; } // diff --git a/src/h__Writer.cpp b/src/h__Writer.cpp index 7d874c0..297c741 100755 --- a/src/h__Writer.cpp +++ b/src/h__Writer.cpp @@ -296,7 +296,7 @@ ASDCP::h__Writer::WriteMXFHeader(const std::string& PackageLabel, const UL& Wrap if ( ASDCP_SUCCESS(result) ) { // Index setup - fpos_t ECoffset = m_File.Tell(); + Kumu::fpos_t ECoffset = m_File.Tell(); if ( BytesPerEditUnit == 0 ) m_FooterPart.SetIndexParamsVBR(&m_HeaderPart.m_Primer, EditRate, ECoffset); @@ -434,7 +434,7 @@ ASDCP::h__Writer::WriteMXFFooter() m_FPTCSequence->Duration = m_FPTimecode->Duration = m_FPClSequence->Duration = m_FPClip->Duration = m_EssenceDescriptor->ContainerDuration = m_FramesWritten; - fpos_t here = m_File.Tell(); + Kumu::fpos_t here = m_File.Tell(); m_HeaderPart.m_RIP.PairArray.push_back(RIP::Pair(0, here)); // Third RIP Entry m_HeaderPart.FooterPartition = here; |
