Skip to content
Snippets Groups Projects
Commit 897ade1b authored by Ronald S. Bultje's avatar Ronald S. Bultje
Browse files

Implement Realmedia-compatible DESCRIBE command.

Originally committed as revision 15140 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent e6fa1ca5
No related branches found
No related tags found
No related merge requests found
...@@ -1125,6 +1125,15 @@ static int rtsp_read_header(AVFormatContext *s, ...@@ -1125,6 +1125,15 @@ static int rtsp_read_header(AVFormatContext *s,
"DESCRIBE %s RTSP/1.0\r\n" "DESCRIBE %s RTSP/1.0\r\n"
"Accept: application/sdp\r\n", "Accept: application/sdp\r\n",
s->filename); 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); rtsp_send_cmd(s, cmd, reply, &content);
if (!content) { if (!content) {
err = AVERROR_INVALIDDATA; err = AVERROR_INVALIDDATA;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment