{
if ( m_Reader && m_Reader->m_File.IsOpen() )
{
- return m_Reader->ReadGenericStreamPartitionPayload(SID, frame_buf);
+ return m_Reader->ReadGenericStreamPartitionPayload(SID, frame_buf, 0, 0 /*no encryption*/);
}
return RESULT_INIT;
if ( KM_SUCCESS(result) )
{
assert(desc_object);
- result = ReadGenericStreamPartitionPayload(desc_object->EssenceStreamID, frame_buf);
+ result = ReadGenericStreamPartitionPayload(desc_object->EssenceStreamID, frame_buf, Ctx, HMAC);
}
if ( KM_SUCCESS(result) )
if ( KM_SUCCESS(result) )
{
assert(desc_object);
- result = ReadGenericStreamPartitionPayload(desc_object->EssenceStreamID, frame_buf);
+ result = ReadGenericStreamPartitionPayload(desc_object->EssenceStreamID, frame_buf, Ctx, HMAC);
}
if ( KM_SUCCESS(result) )
// Reads a Generic Stream Partition payload. Returns RESULT_FORMAT if the SID is
// not present in the RIP, or if the actual partition at ByteOffset does not have
// a matching BodySID value. Encryption is not currently supported.
- Result_t ReadGenericStreamPartitionPayload(const ui32_t sid, ASDCP::FrameBuffer& frame_buf)
+ Result_t ReadGenericStreamPartitionPayload(const ui32_t sid, ASDCP::FrameBuffer& frame_buf,
+ AESDecContext* Ctx, HMACContext* HMAC)
{
Kumu::fpos_t start_offset = 0, end_offset = 0;
ui32_t sequence = 0;
}
else
{
- result = ReadEKLVPacket(0, sequence, frame_buf, m_Dict->ul(MDD_GenericStream_DataElement), 0, 0);
+ result = ReadEKLVPacket(0, sequence, frame_buf, m_Dict->ul(MDD_GenericStream_DataElement), Ctx, HMAC);
}
}
}