[FFmpeg-cvslog] r20268 - trunk/libavformat/rtmpproto.c
kostya
subversion
Sun Oct 18 08:54:05 CEST 2009
Author: kostya
Date: Sun Oct 18 08:54:04 2009
New Revision: 20268
Log:
Last parameter in RTMP "play" call was optional and some servers seem not to
understand it, so drop it.
Modified:
trunk/libavformat/rtmpproto.c
Modified: trunk/libavformat/rtmpproto.c
==============================================================================
--- trunk/libavformat/rtmpproto.c Sat Oct 17 23:30:50 2009 (r20267)
+++ trunk/libavformat/rtmpproto.c Sun Oct 18 08:54:04 2009 (r20268)
@@ -165,7 +165,7 @@ static void gen_play(URLContext *s, RTMP
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, RTMP
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);
More information about the ffmpeg-cvslog
mailing list