Logging ftw
This commit is contained in:
parent
97357aed98
commit
c12c5d1f97
3 changed files with 8 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
#include <stdint.h>
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include <stdio.h>
|
||||
#include "../util/http_parser.cpp"
|
||||
#include "../util/MP4/box_includes.h"
|
||||
#include "../util/flv_data.cpp"
|
||||
|
@ -13,6 +14,7 @@ int main(){
|
|||
while (H.ReadSocket(stdin) || H.CleanForNext()){
|
||||
if (H.body.size() > 10000){
|
||||
Box * TestBox = new Box((uint8_t*)H.body.c_str(), H.body.size());
|
||||
printf("First bytes: %2hhu %2hhu %2hhu %2hhu\n", ((char*)TestBox->Payload)[0], ((char*)TestBox->Payload)[1], ((char*)TestBox->Payload)[2], ((char*)TestBox->Payload)[3]);
|
||||
P = 0;
|
||||
while (TestBox->PayloadSize > P){
|
||||
if (FLV_GetPacket(F, (char*)TestBox->Payload, TestBox->PayloadSize, P)){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue