On Mon, 16 Sep 2013, Luca Barbato wrote:
On 16/09/13 10:50, Martin Storsjö wrote:
On Fri, 13 Sep 2013, Luca Barbato wrote:
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
This breaks connecting to Wowza.
I guess I'll drop this patch and just remove the warning.
Sounds like a good idea.
// Martin
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel