Gadver
This commit is contained in:
parent
4dec919890
commit
6064dedb8a
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ bool FLV_GetPacket(FLV_Pack *& p, int sock){
|
|||
static bool done = true;
|
||||
static unsigned int sofar = 0;
|
||||
if (!p){p = (FLV_Pack*)calloc(1, sizeof(FLV_Pack));}
|
||||
if (p->buf < 15){p->data = (char*)realloc(p->data, 15); p->buf = 15;}
|
||||
if (p->buf < 15){p->data = (char*)realloc(p->data, 5000); p->buf = 5000;}
|
||||
|
||||
if (done){
|
||||
//read a header
|
||||
|
|
Loading…
Add table
Reference in a new issue