The second field of C1 handshake is always 0 when not encrypted.
---
Noticed when trying to figure out what's wrong with the listen mode today.
libavformat/rtmpproto.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c
index 48eed56..fe1cd8f 100644
--- a/libavformat/rtmpproto.c
+++ b/libavformat/rtmpproto.c
@@ -1148,10 +1148,7 @@ static int rtmp_handshake(URLContext *s, RTMPContext *rt)
uint8_t tosend [RTMP_HANDSHAKE_PACKET_SIZE+1] = {
3, // unencrypted data
0, 0, 0, 0, // client uptime
- RTMP_CLIENT_VER1,
- RTMP_CLIENT_VER2,
- RTMP_CLIENT_VER3,
- RTMP_CLIENT_VER4,
+ 0, 0, 0, 0,
};
uint8_t clientdata[RTMP_HANDSHAKE_PACKET_SIZE];
uint8_t serverdata[RTMP_HANDSHAKE_PACKET_SIZE+1];
--
1.8.3.2
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel