]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Last parameter in RTMP "play" call was optional and some servers seem not to
authorkostya <kostya@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sun, 18 Oct 2009 06:54:04 +0000 (06:54 +0000)
committerkostya <kostya@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sun, 18 Oct 2009 06:54:04 +0000 (06:54 +0000)
understand it, so drop it.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20268 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavformat/rtmpproto.c

index 55bd99033dd8d1f998fb309c54c1962a039eb7f3..84cc38828496e69f0dab1f43ba11b807cadb516a 100644 (file)
@@ -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);