[FFmpeg-cvslog] r15140 - trunk/libavformat/rtsp.c
rbultje
subversion
Mon Sep 1 15:46:50 CEST 2008
Author: rbultje
Date: Mon Sep 1 15:46:50 2008
New Revision: 15140
Log:
Implement Realmedia-compatible DESCRIBE command.
Modified:
trunk/libavformat/rtsp.c
Modified: trunk/libavformat/rtsp.c
==============================================================================
--- trunk/libavformat/rtsp.c (original)
+++ trunk/libavformat/rtsp.c Mon Sep 1 15:46:50 2008
@@ -1125,6 +1125,15 @@ static int rtsp_read_header(AVFormatCont
"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;
More information about the ffmpeg-cvslog
mailing list