# HG changeset patch # User kostya # Date 1260967778 0 # Node ID 4ee5aa5e013c10ba9b9695a24250d5d18c41e57d # Parent ab9e31e90d3c1f68a46219f89c5b91629299b214 Reply to RTMP ping with the same value as received by client. Patch by Martin Storsj ($name at $name dot \163\164) diff -r ab9e31e90d3c -r 4ee5aa5e013c rtmpproto.c --- 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); }