Updated RTMP analyser for better readability.

This commit is contained in:
Thulinma 2013-11-18 14:36:19 +01:00
parent 81fec034d3
commit 1986b1517b

View file

@ -117,21 +117,11 @@ namespace Analysers {
fprintf(stderr, "CTRL: Set peer bandwidth: %i\n", RTMPStream::snd_window_size); fprintf(stderr, "CTRL: Set peer bandwidth: %i\n", RTMPStream::snd_window_size);
break; break;
case 8: case 8:
if (Detail & (DETAIL_EXPLICIT | DETAIL_RECONSTRUCT)){
F.ChunkLoader(next);
if (Detail & DETAIL_EXPLICIT){
std::cerr << "Got a " << F.len << " bytes " << F.tagType() << " FLV tag of time " << F.tagTime() << "." << std::endl;
}
if (Detail & DETAIL_RECONSTRUCT){
std::cout.write(F.data, F.len);
}
}
break;
case 9: case 9:
if (Detail & (DETAIL_EXPLICIT | DETAIL_RECONSTRUCT)){ if (Detail & (DETAIL_EXPLICIT | DETAIL_RECONSTRUCT)){
F.ChunkLoader(next); F.ChunkLoader(next);
if (Detail & DETAIL_EXPLICIT){ if (Detail & DETAIL_EXPLICIT){
std::cerr << "Got a " << F.len << " bytes " << F.tagType() << " FLV tag of time " << F.tagTime() << "." << std::endl; std::cerr << "[" << F.tagTime() << "+" << F.offset() << "] " << F.tagType() << std::endl;
} }
if (Detail & DETAIL_RECONSTRUCT){ if (Detail & DETAIL_RECONSTRUCT){
std::cout.write(F.data, F.len); std::cout.write(F.data, F.len);