diff options
author | Sergiy <piratfm@gmail.com> | 2009-12-03 15:59:51 +0000 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2009-12-03 15:59:51 +0000 |
commit | 31da5966341e0803a12e0dbf172c2537cf3cab3d (patch) | |
tree | 77ab1f737bed8b7b796925e0e4dc2d1a279c5b9d /libavformat/rtmpproto.c | |
parent | 5e9ad75985a77efe1ab4cc15056c8e74b152aa3b (diff) | |
download | ffmpeg-streaming-31da5966341e0803a12e0dbf172c2537cf3cab3d.zip ffmpeg-streaming-31da5966341e0803a12e0dbf172c2537cf3cab3d.tar.gz |
Send connect() and createStream() in RTMP system channel, not video channel.
Patch by Sergiy (com gmail . piratfm @ mail =)
Originally committed as revision 20716 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rtmpproto.c')
-rw-r--r-- | libavformat/rtmpproto.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c index 296cb7e..8a54a8d 100644 --- a/libavformat/rtmpproto.c +++ b/libavformat/rtmpproto.c @@ -100,7 +100,7 @@ static void gen_connect(URLContext *s, RTMPContext *rt, const char *proto, 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 *s, RTMPContext *rt) 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"); |