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

supprot LAS(live adaptive stream)

Change-Id: I2f9fd889fc924a3b080667bd2114f4632be461a0
This commit is contained in:
liulichuan 2020-05-11 00:50:14 +08:00 committed by winlin
parent 34e7db5a93
commit c1f98ddcc8
10 changed files with 843 additions and 10 deletions

View file

@ -178,6 +178,22 @@ bool SrsFlvVideo::acceptable(char* data, int size)
return true;
}
#ifdef SRS_LAS
int64_t SrsFlvVideo::cts(char *data, int size)
{
if (!h264(data, size) || size < 6) {
return -1;
} else {
int32_t cts = 0x00;
char* pp = (char*)&cts;
pp[2] = data[2];
pp[1] = data[3];
pp[0] = data[4];
return cts;
}
}
#endif
SrsFlvAudio::SrsFlvAudio()
{
}