From cfac91fec3acfac8dc6b8d6a658abb98d2823002 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Fri, 11 Dec 2009 17:13:35 +0000 Subject: Dump RTMP packet contents in debug mode Originally committed as revision 20799 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/rtmppkt.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libavformat/rtmppkt.h') diff --git a/libavformat/rtmppkt.h b/libavformat/rtmppkt.h index df1dd05525..560165b560 100644 --- a/libavformat/rtmppkt.h +++ b/libavformat/rtmppkt.h @@ -128,6 +128,14 @@ int ff_rtmp_packet_read(URLContext *h, RTMPPacket *p, int ff_rtmp_packet_write(URLContext *h, RTMPPacket *p, int chunk_size, RTMPPacket *prev_pkt); +/** + * Prints information and contents of RTMP packet. + * + * @param h output context + * @param p packet to dump + */ +void ff_rtmp_packet_dump(void *ctx, RTMPPacket *p); + /** * @defgroup amffuncs functions used to work with AMF format (which is also used in .flv) * @see amf_* funcs in libavformat/flvdec.c -- cgit v1.2.3