aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/rtmpproto.c
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2016-10-30 14:52:45 +0100
committerLuca Barbato <lu_zero@gentoo.org>2016-10-30 21:55:03 +0100
commitc541a44e029e8a4f21db028c34fee3ad1c10a409 (patch)
tree8a86fae610cbdba3660be49cc54638a7a0cbd48d /libavformat/rtmpproto.c
parent801ac7156d3efb8e088fb6024f568eb36a293887 (diff)
downloadffmpeg-c541a44e029e8a4f21db028c34fee3ad1c10a409.tar.gz
Revert "rtmpproto: Don't include a client version in the unencrypted C1 handshake"
This reverts commit 7d8d726be7dc46343ab1c98c339c1ed44bcb07c1.
Diffstat (limited to 'libavformat/rtmpproto.c')
-rw-r--r--libavformat/rtmpproto.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c
index 1ffc79a8ce..0097841e81 100644
--- a/libavformat/rtmpproto.c
+++ b/libavformat/rtmpproto.c
@@ -1198,7 +1198,10 @@ 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
- 0, 0, 0, 0, // zeros
+ RTMP_CLIENT_VER1,
+ RTMP_CLIENT_VER2,
+ RTMP_CLIENT_VER3,
+ RTMP_CLIENT_VER4,
};
uint8_t clientdata[RTMP_HANDSHAKE_PACKET_SIZE];
uint8_t serverdata[RTMP_HANDSHAKE_PACKET_SIZE+1];