summaryrefslogtreecommitdiff
path: root/src/h__Reader.cpp
diff options
context:
space:
mode:
authorjhurst <jhurst@cinecert.com>2011-10-27 22:07:13 +0000
committerjhurst <>2011-10-27 22:07:13 +0000
commit289216de368bb6456b2f5e5dc6d4c38abac2b0d9 (patch)
treeb71a49a34001f894fb8607e4ec261bfa12962977 /src/h__Reader.cpp
parentd1be446a52726e2223f58b07e5bd2179c8742075 (diff)
release
Diffstat (limited to 'src/h__Reader.cpp')
-rwxr-xr-xsrc/h__Reader.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/h__Reader.cpp b/src/h__Reader.cpp
index 6ba52e2..d466500 100755
--- a/src/h__Reader.cpp
+++ b/src/h__Reader.cpp
@@ -250,7 +250,7 @@ ASDCP::h__Reader::ReadEKLVPacket(ui32_t FrameNum, ui32_t SequenceNum, ASDCP::Fra
m_LastPosition = m_LastPosition + Reader.KLLength() + PacketLength;
assert(m_Dict);
- if ( memcmp(Key.Value(), m_Dict->ul(MDD_CryptEssence), Key.Size() - 1) == 0 ) // ignore the stream numbers
+ if ( Key.MatchIgnoreStream(m_Dict->ul(MDD_CryptEssence)) ) // ignore the stream numbers
{
if ( ! m_Info.EncryptedEssence )
{
@@ -303,7 +303,7 @@ ASDCP::h__Reader::ReadEKLVPacket(ui32_t FrameNum, ui32_t SequenceNum, ASDCP::Fra
return RESULT_FORMAT;
// test essence UL
- if ( memcmp(ess_p, EssenceUL, SMPTE_UL_LENGTH - 1) != 0 ) // ignore the stream number
+ if ( UL(ess_p).MatchIgnoreStream(EssenceUL) ) // ignore the stream number
{
char strbuf[IntBufferLen];
const MDDEntry* Entry = m_Dict->FindUL(Key.Value());
@@ -383,7 +383,7 @@ ASDCP::h__Reader::ReadEKLVPacket(ui32_t FrameNum, ui32_t SequenceNum, ASDCP::Fra
FrameBuf.PlaintextOffset(PlaintextOffset);
}
}
- else if ( memcmp(Key.Value(), EssenceUL, Key.Size() - 1) == 0 ) // ignore the stream number
+ else if ( Key.MatchIgnoreStream(EssenceUL) ) // ignore the stream number
{ // read plaintext frame
if ( FrameBuf.Capacity() < PacketLength )
{