Fixed bugs for debug session may 4 2012.
This commit is contained in:
parent
ecbcf438de
commit
3ebfe1b693
9 changed files with 56 additions and 43 deletions
|
@ -1,4 +1,4 @@
|
|||
SRC = main.cpp ../../util/amf.cpp ../../util/rtmpchunks.cpp ../../util/crypto.cpp ../../util/flv_tag.cpp ../../util/socket.cpp
|
||||
SRC = main.cpp ../../util/amf.cpp ../../util/rtmpchunks.cpp ../../util/crypto.cpp ../../util/flv_tag.cpp ../../util/socket.cpp ../../util/dtsc.cpp
|
||||
OBJ = $(SRC:.cpp=.o)
|
||||
OUT = RTMP_Parser
|
||||
INCLUDES =
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
#include <iostream>
|
||||
#include <fstream>
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
#include "../../util/flv_tag.h"
|
||||
#include "../../util/amf.h"
|
||||
#include "../../util/rtmpchunks.h"
|
||||
|
@ -149,10 +150,10 @@ int main(int argc, char ** argv){
|
|||
next.data = next.data.substr(1);
|
||||
if (soort == 0){
|
||||
amfdata = AMF::parse(next.data);
|
||||
amfdata.Print();
|
||||
std::cerr << amfdata.Print() << std::endl;
|
||||
}else{
|
||||
amf3data = AMF::parse3(next.data);
|
||||
amf3data.Print();
|
||||
std::cerr << amf3data.Print() << std::endl;
|
||||
}
|
||||
} break;
|
||||
case 18:{
|
||||
|
@ -170,7 +171,7 @@ int main(int argc, char ** argv){
|
|||
case 20:{//AMF0 command message
|
||||
fprintf(stderr, "Received AFM0 command message:\n");
|
||||
amfdata = AMF::parse(next.data);
|
||||
amfdata.Print();
|
||||
std::cerr << amfdata.Print() << std::endl;
|
||||
} break;
|
||||
case 22:
|
||||
fprintf(stderr, "Received aggregate message\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue