]> git.sesse.net Git - ffmpeg/commitdiff
Implement Realmedia-compatible DESCRIBE command.
authorRonald S. Bultje <rsbultje@gmail.com>
Mon, 1 Sep 2008 13:46:50 +0000 (13:46 +0000)
committerRonald S. Bultje <rsbultje@gmail.com>
Mon, 1 Sep 2008 13:46:50 +0000 (13:46 +0000)
Originally committed as revision 15140 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/rtsp.c

index e5b0186df41cf9c972d80061c7bbc42d01e2671a..57c210594082d8b7a64be2a61244a0cf92da4a79 100644 (file)
@@ -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;