changeset 5295:08ec48911f20 libavformat

Last parameter in RTMP "play" call was optional and some servers seem not to understand it, so drop it.
author kostya
date Sun, 18 Oct 2009 06:54:04 +0000
parents f16b8dab057b
children a280af9ae028
files rtmpproto.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/rtmpproto.c	Sat Oct 17 21:30:50 2009 +0000
+++ b/rtmpproto.c	Sun Oct 18 06:54:04 2009 +0000
@@ -165,7 +165,7 @@
 
     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 @@
     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);