diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2013-09-16 11:39:45 +0200 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2013-09-16 19:36:37 +0200 |
commit | fe0337e89bbbe84b7274fbb0d9d56ed992937931 (patch) | |
tree | abb95b58f317ba0103e78405b1d7c0eb57a5f7aa /libavformat/rtmpproto.c | |
parent | 666ed7eda1d568638689ac7b0cef0a9e564ffbdf (diff) | |
download | ffmpeg-fe0337e89bbbe84b7274fbb0d9d56ed992937931.tar.gz |
rtmp: Do not send the first field twice within the handshake
Diffstat (limited to 'libavformat/rtmpproto.c')
-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 c75152f3db..33b59e48a1 100644 --- a/libavformat/rtmpproto.c +++ b/libavformat/rtmpproto.c @@ -1349,7 +1349,7 @@ static int rtmp_send_hs_packet(RTMPContext* rt, uint32_t first_int, int inoutsize; AV_WB32(arraydata, first_int); - AV_WB32(arraydata + 4, first_int); + AV_WB32(arraydata + 4, second_int); inoutsize = ffurl_write(rt->stream, arraydata, RTMP_HANDSHAKE_PACKET_SIZE); if (inoutsize != RTMP_HANDSHAKE_PACKET_SIZE) { |