MCPcopy Create free account
hub / github.com/MonaSolutions/MonaServer / ParseAudio

Method ParseAudio

MonaCore/sources/MediaContainer.cpp:320–328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318}
319
320UInt32 MPEGTS::ParseAudio(SubstreamMap& reader, const UInt8* data, UInt32 size) {
321
322 // Frame size error
323 if (size <= 2)
324 return 0;
325
326 reader.addSub(2, size-2);
327 return size-2;
328}
329
330// Writer audio or video packet
331void MPEGTS::write(BinaryWriter& writer,UInt8 track,UInt32 time,const UInt8* data,UInt32 size) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected