123456789101112131415161718192021222324 |
- #include "FLVVideoHeader.h"
- bool FLVVideoHeader::Read(unsigned __int8 *data, size_t size)
- {
- if (size < 1)
- return false;
- unsigned __int8 byte = data[0];
- format = (byte & 0x0f) >> 0;
- frameType = (byte & 0xf0) >> 4;
-
- return true;
- }
|