Stabiliteitsfixes en in theorie werkende H.264 en AAC, maar je weet maar nooit...
This commit is contained in:
parent
6f34364989
commit
6e41963e6a
1 changed files with 3 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
|||
struct FLV_Pack {
|
||||
int len;
|
||||
int buf;
|
||||
bool isKeyframe;
|
||||
char * data;
|
||||
};//FLV_Pack
|
||||
|
||||
|
@ -43,4 +44,6 @@ void FLV_GetPacket(FLV_Pack *& p){
|
|||
p->len += (p->data[1] << 16);
|
||||
if (p->buf < p->len){p->data = (char*)realloc(p->data, p->len);p->buf = p->len;}
|
||||
fread(p->data+11,1,p->len-11,stdin);
|
||||
p->isKeyframe = false;
|
||||
if ((p->data[0] == 0x09) && (((p->data[11] & 0xf0) >> 4) == 1)){p->isKeyframe = true;}
|
||||
}//FLV_GetPacket
|
||||
|
|
Loading…
Add table
Reference in a new issue