changeset 5523:d854655b2042 libavformat

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)
author kostya
date Tue, 12 Jan 2010 06:44:49 +0000
parents 7698da6e1f0a
children 043b36cefe89
files rtmpproto.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/rtmpproto.c	Tue Jan 12 00:29:26 2010 +0000
+++ b/rtmpproto.c	Tue Jan 12 06:44:49 2010 +0000
@@ -481,7 +481,7 @@
     av_log(LOG_CONTEXT, AV_LOG_DEBUG, "Server version %d.%d.%d.%d\n",
            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);
         if (!server_pos) {
             server_pos = rtmp_validate_digest(serverdata + 1, 8);