Stabiliteitsfixes en in theorie werkende H.264 en AAC, maar je weet maar nooit...

This commit is contained in:
Thulinma 2010-08-24 00:13:52 +02:00 committed by Thulinma
parent 6f34364989
commit 6e41963e6a

View file

@ -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