summaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2013-09-16 11:39:45 +0200
committerLuca Barbato <lu_zero@gentoo.org>2013-09-16 19:36:37 +0200
commitfe0337e89bbbe84b7274fbb0d9d56ed992937931 (patch)
treeabb95b58f317ba0103e78405b1d7c0eb57a5f7aa /libavformat
parent666ed7eda1d568638689ac7b0cef0a9e564ffbdf (diff)
downloadffmpeg-streaming-fe0337e89bbbe84b7274fbb0d9d56ed992937931.zip
ffmpeg-streaming-fe0337e89bbbe84b7274fbb0d9d56ed992937931.tar.gz
rtmp: Do not send the first field twice within the handshake
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/rtmpproto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c
index c75152f..33b59e4 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) {
OpenPOWER on IntegriCloud