summaryrefslogtreecommitdiff
path: root/src/h__02_Reader.cpp
diff options
context:
space:
mode:
authorjhurst <jhurst@cinecert.com>2019-06-12 18:08:14 -0700
committerjhurst <jhurst@cinecert.com>2019-06-12 18:08:14 -0700
commite65db682915797bb2adc57d23b0de04cb3861138 (patch)
treed3d9d9f55f53355a9ca5fd506182f46fd2cec759 /src/h__02_Reader.cpp
parentc3c7f45ae9692ca4cc3f2999ece69fa9bc911b49 (diff)
Modified to enforce execution order of the predicates
Diffstat (limited to 'src/h__02_Reader.cpp')
-rw-r--r--src/h__02_Reader.cpp9
1 files 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;