aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArt Clarke <aclarke@vlideshow.com>2010-01-12 06:44:49 +0000
committerKostya Shishkov <kostya.shishkov@gmail.com>2010-01-12 06:44:49 +0000
commite2ee11e868249f6cea9f9b26deea639f65da8396 (patch)
tree6a239ce59a82bdc5355965564e065be3b0be1b63
parent082cf97106e2e94a969877d4f8c05c1e526acf54 (diff)
downloadffmpeg-e2ee11e868249f6cea9f9b26deea639f65da8396.tar.gz
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) Originally committed as revision 21160 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/rtmpproto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c
index d117b018d3..dcb055535a 100644
--- a/libavformat/rtmpproto.c
+++ b/libavformat/rtmpproto.c
@@ -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",
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);