diff options
| author | Wolfgang Ruppel <imftool@t-online.de> | 2019-07-06 15:56:43 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-06 15:56:43 +0200 |
| commit | ae53f039c3bca75a60ad4c7fa8e004ab1c530a96 (patch) | |
| tree | cedc054ada678485b8fdce9186b779a7c0e663e8 /src/h__02_Reader.cpp | |
| parent | 0317dcb43c14eae0393552999bc2389abec52336 (diff) | |
| parent | 5c74d64d6e8d72b54e4ab34204c1ba06539422f5 (diff) | |
Merge pull request #3 from cinecert/master
Sync with upstream
Diffstat (limited to 'src/h__02_Reader.cpp')
| -rw-r--r-- | src/h__02_Reader.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/h__02_Reader.cpp b/src/h__02_Reader.cpp index 17e9b0d..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.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; |
