diff options
author | Martin Storsjö <martin@martin.st> | 2009-12-16 12:49:38 +0000 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2009-12-16 12:49:38 +0000 |
commit | 4aaebf78f53fc484c74e08f5c0ecbaecbe019fac (patch) | |
tree | 692c1b81749b1a584d2d092dea8a0917b5f6b738 | |
parent | 0fc2c0f618b0640b96dc3ed1ec48e0f355d01647 (diff) | |
download | ffmpeg-4aaebf78f53fc484c74e08f5c0ecbaecbe019fac.tar.gz |
Reply to RTMP ping with the same value as received by client.
Patch by Martin Storsjö ($name at $name dot \163\164)
Originally committed as revision 20881 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/rtmpproto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c index bf3ab9307a..d117b018d3 100644 --- a/libavformat/rtmpproto.c +++ b/libavformat/rtmpproto.c @@ -332,7 +332,7 @@ static void gen_pong(URLContext *s, RTMPContext *rt, RTMPPacket *ppkt) ff_rtmp_packet_create(&pkt, RTMP_NETWORK_CHANNEL, RTMP_PT_PING, ppkt->timestamp + 1, 6); p = pkt.data; bytestream_put_be16(&p, 7); - bytestream_put_be32(&p, AV_RB32(ppkt->data+2) + 1); + bytestream_put_be32(&p, AV_RB32(ppkt->data+2)); ff_rtmp_packet_write(rt->stream, &pkt, rt->chunk_size, rt->prev_pkt[1]); ff_rtmp_packet_destroy(&pkt); } |