1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

for #250, calc and verify the crc32 of PAT.

This commit is contained in:
winlin 2015-01-27 17:04:30 +08:00
parent 52b62918d9
commit 7692e50fc2
4 changed files with 100 additions and 3 deletions

View file

@ -80,5 +80,10 @@ extern bool srs_avc_startswith_annexb(SrsStream* stream, int* pnb_start_code = N
*/
extern bool srs_aac_startswith_adts(SrsStream* stream);
/**
* cacl the crc32 of bytes in buf.
*/
extern u_int32_t srs_crc32(const void* buf, int size);
#endif