From 897ade1ba952db5eb6f3b8f384dde1c105a36255 Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Mon, 1 Sep 2008 13:46:50 +0000 Subject: [PATCH] Implement Realmedia-compatible DESCRIBE command. Originally committed as revision 15140 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/rtsp.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index e5b0186..57c2105 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -1125,6 +1125,15 @@ static int rtsp_read_header(AVFormatContext *s, "DESCRIBE %s RTSP/1.0\r\n" "Accept: application/sdp\r\n", s->filename); + if (rt->server_type == RTSP_SERVER_RDT) { + /** + * The Require: attribute is needed for proper streaming from + * Realmedia servers. + */ + av_strlcat(cmd, + "Require: com.real.retain-entity-for-setup\r\n", + sizeof(cmd)); + } rtsp_send_cmd(s, cmd, reply, &content); if (!content) { err = AVERROR_INVALIDDATA; -- 2.7.4