From: jhurst Date: Thu, 13 Jun 2019 01:08:14 +0000 (-0700) Subject: Modified to enforce execution order of the predicates X-Git-Tag: rel_2_10_33^2~2 X-Git-Url: https://git.carlh.net/gitweb/?a=commitdiff_plain;ds=sidebyside;h=250b2032101b132a29e935173034cc4393f76978;p=asdcplib.git Modified to enforce execution order of the predicates --- diff --git a/src/h__02_Reader.cpp b/src/h__02_Reader.cpp index 39db8cb..b3c092b 100644 --- a/src/h__02_Reader.cpp +++ b/src/h__02_Reader.cpp @@ -430,10 +430,13 @@ AS_02::h__AS02Reader::OpenMXFRead(const std::string& filename) } // - if ( !m_RIP.PairArray.empty() && m_RIP.PairArray.front().ByteOffset != 0 ) + if ( ! m_RIP.PairArray.empty() ) { - DefaultLogSink().Error("First Partition in RIP is not at offset 0.\n"); - return RESULT_AS02_FORMAT; + if ( m_RIP.PairArray.front().ByteOffset != 0 ) + { + DefaultLogSink().Error("First Partition in RIP is not at offset 0.\n"); + return RESULT_AS02_FORMAT; + } } Kumu::fpos_t first_partition_after_header = 0;