[rtmpdump] r446 - trunk/librtmp/handshake.h
hyc
subversion at mplayerhq.hu
Sat Apr 24 13:30:40 CEST 2010
Author: hyc
Date: Sat Apr 24 13:30:39 2010
New Revision: 446
Log:
Tweak client version based on encryption status
Modified:
trunk/librtmp/handshake.h
Modified: trunk/librtmp/handshake.h
==============================================================================
--- trunk/librtmp/handshake.h Sat Apr 24 09:28:41 2010 (r445)
+++ trunk/librtmp/handshake.h Sat Apr 24 13:30:39 2010 (r446)
@@ -374,13 +374,16 @@ HandShake(RTMP * r, bool FP9HandShake)
if (FP9HandShake)
{
/* set version to at least 9.0.115.0 */
-#ifdef FP10
- clientsig[4] = 128;
- clientsig[6] = 3;
-#else
- clientsig[4] = 9;
- clientsig[6] = 124;
-#endif
+ if (encrypted)
+ {
+ clientsig[4] = 128;
+ clientsig[6] = 3;
+ }
+ else
+ {
+ clientsig[4] = 10;
+ clientsig[6] = 45;
+ }
clientsig[5] = 0;
clientsig[7] = 2;
More information about the rtmpdump
mailing list