Commit fe88cc56 authored by rbultje's avatar rbultje

Implement Realmedia-compatible DESCRIBE command.



git-svn-id: file:///var/local/repositories/ffmpeg/trunk@15140 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 88bd00fd
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment