diff options
| author | tmccolm <tmccolm@cinecert.com> | 2006-06-23 19:48:03 +0000 |
|---|---|---|
| committer | tmccolm <> | 2006-06-23 19:48:03 +0000 |
| commit | c589ee9d47d9f00aa4be32c5832a44ce466f014d (patch) | |
| tree | d285585caea07384dc75c5cb2a697df821437f72 /src/h__Reader.cpp | |
| parent | 5e91ca52284adc91a42d6fe389c9cc70a33126a6 (diff) | |
2006/06/23 tmccolm
Diffstat (limited to 'src/h__Reader.cpp')
| -rwxr-xr-x | src/h__Reader.cpp | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/src/h__Reader.cpp b/src/h__Reader.cpp index 1ebc5d4..2179ca6 100755 --- a/src/h__Reader.cpp +++ b/src/h__Reader.cpp @@ -108,19 +108,23 @@ ASDCP::h__Reader::OpenMXFRead(const char* filename) if ( ASDCP_SUCCESS(result) ) result = m_HeaderPart.InitFromFile(m_File); - // if this is a three partition file, go to the body - // partition and read off the partition pack - if ( m_HeaderPart.m_RIP.PairArray.size() == 3 ) + if ( ASDCP_SUCCESS(result) ) { - Array<RIP::Pair>::iterator r_i = m_HeaderPart.m_RIP.PairArray.begin(); - r_i++; - m_File.Seek((*r_i).ByteOffset); + // if this is a three partition file, go to the body + // partition and read the partition pack + if ( m_HeaderPart.m_RIP.PairArray.size() == 3 ) + { + Array<RIP::Pair>::iterator r_i = m_HeaderPart.m_RIP.PairArray.begin(); + r_i++; + m_File.Seek((*r_i).ByteOffset); - result = m_BodyPart.InitFromFile(m_File); + result = m_BodyPart.InitFromFile(m_File); + } + + m_EssenceStart = m_File.Tell(); } - m_EssenceStart = m_File.Tell(); - return RESULT_OK; + return result; } |
