diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2010-01-30 09:24:52 +0000 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2010-01-30 09:24:52 +0000 |
commit | 0b6b10d9dae44d3f48dd75f466264c780f7cff00 (patch) | |
tree | 28c363bd78468bb488cbf84b73a3bd409de5a923 /libavformat/rtmppkt.h | |
parent | 09b67cc4bd4e7b587af346cef5eccf786b956674 (diff) | |
download | ffmpeg-0b6b10d9dae44d3f48dd75f466264c780f7cff00.tar.gz |
Make RTMP send/receive packet functions report number of bytes read or sent.
Originally committed as revision 21533 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rtmppkt.h')
-rw-r--r-- | libavformat/rtmppkt.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/rtmppkt.h b/libavformat/rtmppkt.h index 560165b560..23d4ebcd04 100644 --- a/libavformat/rtmppkt.h +++ b/libavformat/rtmppkt.h @@ -110,7 +110,7 @@ void ff_rtmp_packet_destroy(RTMPPacket *pkt); * @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 @@ int ff_rtmp_packet_read(URLContext *h, RTMPPacket *p, * @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); |