Browse Source

rtmp: Do not send the first field twice within the handshake

tags/n2.1
Luca Barbato 11 years ago
parent
commit
fe0337e89b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/rtmpproto.c

+ 1
- 1
libavformat/rtmpproto.c View File

@@ -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) {


Loading…
Cancel
Save