Mercurial > libavformat.hg
diff rtmpproto.c @ 5432:f282f7758d6e libavformat
Dump RTMP packet contents in debug mode
author | kostya |
---|---|
date | Fri, 11 Dec 2009 17:13:35 +0000 |
parents | b0eb87793222 |
children | 4ee5aa5e013c |
line wrap: on
line diff
--- a/rtmpproto.c Fri Dec 11 15:31:58 2009 +0000 +++ b/rtmpproto.c Fri Dec 11 17:13:35 2009 +0000 @@ -43,6 +43,8 @@ #define LOG_CONTEXT s #endif +//#define DEBUG + /** RTMP protocol handler state */ typedef enum { STATE_START, ///< client has not done anything yet @@ -529,6 +531,10 @@ int i, t; const uint8_t *data_end = pkt->data + pkt->data_size; +#ifdef DEBUG + ff_rtmp_packet_dump(LOG_CONTEXT, pkt); +#endif + switch (pkt->type) { case RTMP_PT_CHUNK_SIZE: if (pkt->data_size != 4) {