Mercurial > libavformat.hg
changeset 5465:4ee5aa5e013c libavformat
Reply to RTMP ping with the same value as received by client.
Patch by Martin Storsj ($name at $name dot \163\164)
author | kostya |
---|---|
date | Wed, 16 Dec 2009 12:49:38 +0000 |
parents | ab9e31e90d3c |
children | af08ed2b60b8 |
files | rtmpproto.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/rtmpproto.c Tue Dec 15 23:41:22 2009 +0000 +++ b/rtmpproto.c Wed Dec 16 12:49:38 2009 +0000 @@ -332,7 +332,7 @@ 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); }