aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/rtsp.c
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2008-09-01 13:46:50 +0000
committerRonald S. Bultje <rsbultje@gmail.com>2008-09-01 13:46:50 +0000
commit897ade1ba952db5eb6f3b8f384dde1c105a36255 (patch)
tree0e516f9dba292f821c73cbf6cc4c6995229343bd /libavformat/rtsp.c
parente6fa1ca5c3735e01f909023c88fae623dd33629c (diff)
downloadffmpeg-897ade1ba952db5eb6f3b8f384dde1c105a36255.tar.gz
Implement Realmedia-compatible DESCRIBE command.
Originally committed as revision 15140 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rtsp.c')
-rw-r--r--libavformat/rtsp.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index e5b0186df4..57c2105940 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;