[FFmpeg-cvslog] Revert "rtmpproto: Don' t include a client version in the unencrypted C1 handshake"
Luca Barbato
git at videolan.org
Mon Mar 27 23:21:39 EEST 2017
ffmpeg | branch: master | Luca Barbato <lu_zero at gentoo.org> | Sun Oct 30 14:52:45 2016 +0100| [c541a44e029e8a4f21db028c34fee3ad1c10a409] | committer: Luca Barbato
Revert "rtmpproto: Don't include a client version in the unencrypted C1 handshake"
This reverts commit 7d8d726be7dc46343ab1c98c339c1ed44bcb07c1.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c541a44e029e8a4f21db028c34fee3ad1c10a409
---
libavformat/rtmpproto.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c
index 1ffc79a..0097841 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];
More information about the ffmpeg-cvslog
mailing list