X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fh__02_Reader.cpp;h=b3c092b39ede5b625a55a6ef94b50ca1c180b50a;hb=250b2032101b132a29e935173034cc4393f76978;hp=39db8cbe37623a3a20a0e4b16daafe167e42a5a3;hpb=fbeb429e6640090158610f03a8bbaca004b6f256;p=asdcplib.git 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;