Mercurial > libavformat.hg
diff rtmppkt.h @ 5604:81b2509db2ad libavformat
Make RTMP send/receive packet functions report number of bytes read or sent.
author | kostya |
---|---|
date | Sat, 30 Jan 2010 09:24:52 +0000 |
parents | f282f7758d6e |
children | fa244b4fe683 |
line wrap: on
line diff
--- a/rtmppkt.h Sat Jan 30 08:38:11 2010 +0000 +++ b/rtmppkt.h Sat Jan 30 09:24:52 2010 +0000 @@ -110,7 +110,7 @@ * @param chunk_size current chunk size * @param prev_pkt previously read packet headers for all channels * (may be needed for restoring incomplete packet header) - * @return zero on success, negative value otherwise + * @return number of bytes read on success, negative value otherwise */ int ff_rtmp_packet_read(URLContext *h, RTMPPacket *p, int chunk_size, RTMPPacket *prev_pkt); @@ -123,7 +123,7 @@ * @param chunk_size current chunk size * @param prev_pkt previously sent packet headers for all channels * (may be used for packet header compressing) - * @return zero on success, negative value otherwise + * @return number of bytes written on success, negative value otherwise */ int ff_rtmp_packet_write(URLContext *h, RTMPPacket *p, int chunk_size, RTMPPacket *prev_pkt);