Commit 66d02ac5 authored by kostya's avatar kostya

Use old-style RTMP handshake for old servers.

This fixes issue streaming from Red5 server.
Patch by Art Clarke (aclarke@`echo xyzzy|sed s/y/u/|sed s/y/le/|tr z g`.com)



git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21160 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 7795a51a
...@@ -481,7 +481,7 @@ static int rtmp_handshake(URLContext *s, RTMPContext *rt) ...@@ -481,7 +481,7 @@ static int rtmp_handshake(URLContext *s, RTMPContext *rt)
av_log(LOG_CONTEXT, AV_LOG_DEBUG, "Server version %d.%d.%d.%d\n", av_log(LOG_CONTEXT, AV_LOG_DEBUG, "Server version %d.%d.%d.%d\n",
serverdata[5], serverdata[6], serverdata[7], serverdata[8]); serverdata[5], serverdata[6], serverdata[7], serverdata[8]);
if (rt->is_input) { if (rt->is_input && serverdata[5] >= 3) {
server_pos = rtmp_validate_digest(serverdata + 1, 772); server_pos = rtmp_validate_digest(serverdata + 1, 772);
if (!server_pos) { if (!server_pos) {
server_pos = rtmp_validate_digest(serverdata + 1, 8); server_pos = rtmp_validate_digest(serverdata + 1, 8);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment