[FFmpeg-cvslog] r20881 - trunk/libavformat/rtmpproto.c
kostya
subversion
Wed Dec 16 13:49:39 CET 2009
Author: kostya
Date: Wed Dec 16 13:49:38 2009
New Revision: 20881
Log:
Reply to RTMP ping with the same value as received by client.
Patch by Martin Storsj? ($name at $name dot \163\164)
Modified:
trunk/libavformat/rtmpproto.c
Modified: trunk/libavformat/rtmpproto.c
==============================================================================
--- trunk/libavformat/rtmpproto.c Wed Dec 16 13:08:01 2009 (r20880)
+++ trunk/libavformat/rtmpproto.c Wed Dec 16 13:49:38 2009 (r20881)
@@ -332,7 +332,7 @@ static void gen_pong(URLContext *s, RTMP
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);
}
More information about the ffmpeg-cvslog
mailing list