[SCM] libav/experimental: Implement Realmedia-compatible DESCRIBE command.
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 16:29:12 UTC 2013
The following commit has been merged in the experimental branch:
commit 897ade1ba952db5eb6f3b8f384dde1c105a36255
Author: Ronald S. Bultje <rsbultje at gmail.com>
Date: Mon Sep 1 13:46:50 2008 +0000
Implement Realmedia-compatible DESCRIBE command.
Originally committed as revision 15140 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index e5b0186..57c2105 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;
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list