diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2009-12-11 17:13:35 +0000 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2009-12-11 17:13:35 +0000 |
commit | cfac91fec3acfac8dc6b8d6a658abb98d2823002 (patch) | |
tree | 02b20163c45631adce9f95d235f7f9ced98b6d75 /libavformat/rtmpproto.c | |
parent | f8caa5441b2e1a9b45f19415512a855ac482398f (diff) | |
download | ffmpeg-cfac91fec3acfac8dc6b8d6a658abb98d2823002.tar.gz |
Dump RTMP packet contents in debug mode
Originally committed as revision 20799 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rtmpproto.c')
-rw-r--r-- | libavformat/rtmpproto.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c index 559a93f867..bf3ab9307a 100644 --- a/libavformat/rtmpproto.c +++ b/libavformat/rtmpproto.c @@ -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 @@ static int rtmp_parse_result(URLContext *s, RTMPContext *rt, RTMPPacket *pkt) 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) { |