diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2008-09-01 13:46:50 +0000 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2008-09-01 13:46:50 +0000 |
commit | 897ade1ba952db5eb6f3b8f384dde1c105a36255 (patch) | |
tree | 0e516f9dba292f821c73cbf6cc4c6995229343bd /libavformat | |
parent | e6fa1ca5c3735e01f909023c88fae623dd33629c (diff) | |
download | ffmpeg-897ade1ba952db5eb6f3b8f384dde1c105a36255.tar.gz |
Implement Realmedia-compatible DESCRIBE command.
Originally committed as revision 15140 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/rtsp.c | 9 |
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; |