From 250b2032101b132a29e935173034cc4393f76978 Mon Sep 17 00:00:00 2001 From: jhurst Date: Wed, 12 Jun 2019 18:08:14 -0700 Subject: [PATCH] Modified to enforce execution order of the predicates --- src/h__02_Reader.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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; -- 2.30.2