diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2009-10-18 06:54:04 +0000 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2009-10-18 06:54:04 +0000 |
commit | f836fa17060f34c09d5fd8d80b62cd7a771f0ab2 (patch) | |
tree | c5187ff3017590284de78650bb45640c2a9ad582 /libavformat/rtmpproto.c | |
parent | 961057decdeea079c81f71d934d0bfe10734116c (diff) | |
download | ffmpeg-f836fa17060f34c09d5fd8d80b62cd7a771f0ab2.tar.gz |
Last parameter in RTMP "play" call was optional and some servers seem not to
understand it, so drop it.
Originally committed as revision 20268 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rtmpproto.c')
-rw-r--r-- | libavformat/rtmpproto.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c index 55bd99033d..84cc388284 100644 --- a/libavformat/rtmpproto.c +++ b/libavformat/rtmpproto.c @@ -165,7 +165,7 @@ static void gen_play(URLContext *s, RTMPContext *rt) av_log(LOG_CONTEXT, AV_LOG_DEBUG, "Sending play command for '%s'\n", rt->playpath); ff_rtmp_packet_create(&pkt, RTMP_VIDEO_CHANNEL, RTMP_PT_INVOKE, 0, - 29 + strlen(rt->playpath)); + 20 + strlen(rt->playpath)); pkt.extra = rt->main_channel_id; p = pkt.data; @@ -173,7 +173,6 @@ static void gen_play(URLContext *s, RTMPContext *rt) ff_amf_write_number(&p, 0.0); ff_amf_write_null(&p); ff_amf_write_string(&p, rt->playpath); - ff_amf_write_number(&p, 0.0); ff_rtmp_packet_write(rt->stream, &pkt, rt->chunk_size, rt->prev_pkt[1]); ff_rtmp_packet_destroy(&pkt); |