Commit 0df94806 authored by kostya's avatar kostya

Reply to RTMP ping with the same value as received by client.

Patch by Martin Storsjö ($name at $name dot \163\164)



git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20881 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent adf8cd3b
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment