fprintf(stream, "ContainerDuration: %u\n", TDesc.ContainerDuration);
fprintf(stream, " AssetID: %s\n", TmpID.EncodeHex(buf, 64));
fprintf(stream, " NamespaceName: %s\n", TDesc.NamespaceName.c_str());
- fprintf(stream, " ResourceCount: %du\n", TDesc.ResourceList.size());
+ fprintf(stream, " ResourceCount: %d\n", TDesc.ResourceList.size());
TimedText::ResourceList_t::const_iterator ri;
for ( ri = TDesc.ResourceList.begin() ; ri != TDesc.ResourceList.end(); ri++ )
// read the essence packet
if( ASDCP_SUCCESS(result) )
- result = ReadEKLVPacket(0, 1, FrameBuf, Dict::ul(MDD_TimedTextEssence), Ctx, HMAC);
+ result = ReadEKLVPacket(0, 1, FrameBuf, Dict::ul(MDD_GenericStream_DataElement), Ctx, HMAC);
}
}
}
Kumu::fpos_t here = m_File.Tell();
// create generic stream partition header
+ static UL GenericStream_DataElement(Dict::ul(MDD_GenericStream_DataElement));
MXF::Partition GSPart;
GSPart.ThisPartition = here;
Result_t result = GSPart.WriteToFile(m_File, TmpUL);
if ( ASDCP_SUCCESS(result) )
- result = WriteEKLVPacket(FrameBuf, m_EssenceUL, Ctx, HMAC);
+ result = WriteEKLVPacket(FrameBuf, GenericStream_DataElement.Value(), Ctx, HMAC);
- m_FramesWritten++;
+ m_FramesWritten++;
return result;
}
{ { 0x06, 0x0e, 0x2b, 0x34, 0x01, 0x01, 0x01, 0x02, // 147
0x06, 0x01, 0x01, 0x04, 0x06, 0x03, 0x00, 0x00 },
{0x2f, 0x01}, true, "GenericDescriptor_Locators" },
- { { 0x06, 0x0e, 0x2b, 0x34, 0x01, 0x01, 0x01, 0x02, // 148
+ { { 0x06, 0x0e, 0x2b, 0x34, 0x01, 0x01, 0x01, 0x09, // 148
0x06, 0x01, 0x01, 0x04, 0x06, 0x10, 0x00, 0x00 },
{0}, true, "GenericDescriptor_SubDescriptors" },
{ { 0x06, 0x0e, 0x2b, 0x34, 0x02, 0x53, 0x01, 0x01, // 149
{ { 0x06, 0x0e, 0x2b, 0x34, 0x01, 0x01, 0x01, 0x09, // 254
0x02, 0x09, 0x03, 0x01, 0x02, 0x00, 0x00, 0x00 },
{0}, false, "CryptographicContext_CryptographicKeyID" },
- { { 0x06, 0x0e, 0x2b, 0x34, 0x04, 0x01, 0x01, 0x09, // 255
+ { { 0x06, 0x0e, 0x2b, 0x34, 0x04, 0x01, 0x01, 0x0a, // 255
0x0d, 0x01, 0x03, 0x01, 0x02, 0x13, 0x01, 0x01 },
{0}, false, "TimedTextWrapping" },
{ { 0x06, 0x0e, 0x2b, 0x34, 0x01, 0x02, 0x01, 0x09, // 256
{ { 0x06, 0x0e, 0x2b, 0x34, 0x01, 0x01, 0x01, 0x04, // 264
0x01, 0x03, 0x04, 0x04, 0x00, 0x00, 0x00, 0x00 },
{0}, false, "TimedTextResourceSubDescriptor_EssenceStreamID" },
- { { 0x06, 0x0e, 0x2b, 0x34, 0x01, 0x01, 0x01, 0x04, // 265
- 0x06, 0x10, 0x10, 0x05, 0x01, 0x02, 0x11, 0x00 },
+ { { 0x06, 0x0e, 0x2b, 0x34, 0x02, 0x05, 0x01, 0x01, // 265
+ 0x0d, 0x01, 0x02, 0x01, 0x01, 0x03, 0x11, 0x00 },
{0}, false, "GenericStreamPartition" },
{ { 0x06, 0x0e, 0x2b, 0x34, 0x01, 0x01, 0x01, 0x02, // 266
0x04, 0x07, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00 },
{ { 0x06, 0x0e, 0x2b, 0x34, 0x01, 0x01, 0x01, 0x07, // 270
0x04, 0x02, 0x01, 0x01, 0x05, 0x00, 0x00, 0x00 },
{0x3d, 0x32}, true, "WaveAudioDescriptor_ChannelAssignment" },
+ { { 0x06, 0x0e, 0x2b, 0x34, 0x01, 0x01, 0x01, 0x0c, // 271
+ 0x0d, 0x01, 0x05, 0x05, 0x01, 0x00, 0x00, 0x00 },
+ {0x00, 0x00}, false, "GenericStream_DataElement" },
{ {0}, {0}, false, 0 }
};
-const ui32_t s_MDD_Table_size = 270;
+const ui32_t s_MDD_Table_size = 272;
//
// end MDD.cpp