[FFmpeg-devel] [PATCH] Fix rtmp handshake for servers earlier than 3.x
Art Clarke
aclarke
Tue Jan 12 02:42:17 CET 2010
This fixes handshaking with Red5, and should work with RTMP servers
before Adobe decided to do all that wacky digest crap.
- Art
--
http://www.xuggle.com/
xu?ggle (z?' gl) v. To freely encode, decode, and experience audio and video.
Use Xuggle to get the power of FFmpeg in Java.
-------------- next part --------------
Index: libavformat/rtmpproto.c
===================================================================
--- libavformat/rtmpproto.c (revision 21104)
+++ libavformat/rtmpproto.c (working copy)
@@ -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);
More information about the ffmpeg-devel
mailing list