[FFmpeg-cvslog] r20716 - trunk/libavformat/rtmpproto.c

kostya subversion
Thu Dec 3 16:59:51 CET 2009


Author: kostya
Date: Thu Dec  3 16:59:51 2009
New Revision: 20716

Log:
Send connect() and createStream() in RTMP system channel, not video channel.
Patch by Sergiy (com gmail . piratfm @ mail =)

Modified:
   trunk/libavformat/rtmpproto.c

Modified: trunk/libavformat/rtmpproto.c
==============================================================================
--- trunk/libavformat/rtmpproto.c	Thu Dec  3 16:47:00 2009	(r20715)
+++ trunk/libavformat/rtmpproto.c	Thu Dec  3 16:59:51 2009	(r20716)
@@ -100,7 +100,7 @@ static void gen_connect(URLContext *s, R
     uint8_t ver[32], *p;
     char tcurl[512];
 
-    ff_rtmp_packet_create(&pkt, RTMP_VIDEO_CHANNEL, RTMP_PT_INVOKE, 0, 4096);
+    ff_rtmp_packet_create(&pkt, RTMP_SYSTEM_CHANNEL, RTMP_PT_INVOKE, 0, 4096);
     p = pkt.data;
 
     snprintf(tcurl, sizeof(tcurl), "%s://%s:%d/%s", proto, host, port, rt->app);
@@ -143,7 +143,7 @@ static void gen_create_stream(URLContext
     uint8_t *p;
 
     av_log(LOG_CONTEXT, AV_LOG_DEBUG, "Creating stream...\n");
-    ff_rtmp_packet_create(&pkt, RTMP_VIDEO_CHANNEL, RTMP_PT_INVOKE, 0, 25);
+    ff_rtmp_packet_create(&pkt, RTMP_SYSTEM_CHANNEL, RTMP_PT_INVOKE, 0, 25);
 
     p = pkt.data;
     ff_amf_write_string(&p, "createStream");



More information about the ffmpeg-cvslog mailing list