MCPcopy Create free account
hub / github.com/IENT/YUView / checkForRawNALFormat

Function checkForRawNALFormat

YUViewLib/src/ffmpeg/AVPacketWrapper.cpp:43–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41{
42
43bool checkForRawNALFormat(QByteArray &data, bool threeByteStartCode)
44{
45 if (threeByteStartCode && data.length() > 3 && data.at(0) == (char)0 && data.at(1) == (char)0 &&
46 data.at(2) == (char)1)
47 return true;
48 if (!threeByteStartCode && data.length() > 4 && data.at(0) == (char)0 && data.at(1) == (char)0 &&
49 data.at(2) == (char)0 && data.at(3) == (char)1)
50 return true;
51 return false;
52}
53
54bool checkForMp4Format(QByteArray &data)
55{

Callers 1

Calls 1

atMethod · 0.45

Tested by

no test coverage detected