Merge pull request #18 from wruppelx/master
authorJohn Hurst <jhurst@cinecert.com>
Mon, 30 Dec 2019 21:58:01 +0000 (13:58 -0800)
committerGitHub <noreply@github.com>
Mon, 30 Dec 2019 21:58:01 +0000 (13:58 -0800)
Default value of Flags in Index Entry Array fixed

src/AS_DCP_TimedText.cpp
src/JP2K_Sequence_Parser.cpp
src/KM_util.h

index d3c0fa8b425fcb53ecfe698228145d6f7db99ea4..0cc3748873411a377d59addc88fd186a0b9a58be 100644 (file)
@@ -160,6 +160,7 @@ ASDCP::TimedText::MXFReader::h__Reader::MD_to_TimedText_TDesc(TimedText::TimedTe
   memcpy(TDesc.AssetID, TDescObj->ResourceID.Value(), UUIDlen);
   TDesc.NamespaceName = TDescObj->NamespaceURI;
   TDesc.EncodingName = TDescObj->UCSEncoding;
+  TDesc.ResourceList.clear();
 
   Array<UUID>::const_iterator sdi = TDescObj->SubDescriptors.begin();
   TimedTextResourceSubDescriptor* DescObject = 0;
index a0fd5d0b9c2fde47ac8143fe13a5cd5b1cd228b4..a08044000ba1df1ab804b0fb27da31112fe4b485 100755 (executable)
@@ -229,7 +229,7 @@ operator==(const ASDCP::JP2K::CodingStyleDefault_t& lhs, const ASDCP::JP2K::Codi
 
   for ( ui32_t i = 0; i < sizeof(ui16_t); i++ )
     {
-      if ( lhs.SGcod.NumberOfLayers[i] != lhs.SGcod.NumberOfLayers[i]  )
+      if ( lhs.SGcod.NumberOfLayers[i] != rhs.SGcod.NumberOfLayers[i]  )
        return false;
     }
 
index e8004c151ac91f9080ebcda1f5109050a2b823ac..f3f60f187b3715b9a1d50e7af4412a3254047d8f 100755 (executable)
@@ -303,6 +303,18 @@ namespace Kumu
        return false;
       }
 
+      inline bool operator>(const Identifier& rhs) const {
+       ui32_t test_size = xmin(rhs.Size(), SIZE);
+
+       for ( ui32_t i = 0; i < test_size; i++ )
+         {
+           if ( m_Value[i] != rhs.m_Value[i] )
+             return m_Value[i] > rhs.m_Value[i];
+         }
+       
+       return false;
+      }
+
       inline bool operator==(const Identifier& rhs) const {
        if ( rhs.Size() != SIZE ) return false;
        return ( memcmp(m_Value, rhs.m_Value, SIZE) == 0 );