summaryrefslogtreecommitdiffstats
path: root/libavformat/rtspdec.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2010-11-15 15:08:53 +0000
committerMartin Storsjö <martin@martin.st>2010-11-15 15:08:53 +0000
commitdd22cfb1015dea8f9db29a2334662bd35c3d3f79 (patch)
treeb9e8ae2adf175fdc0835c9c9f46fa57013b2c6ab /libavformat/rtspdec.c
parentf3d77632d707ca6497289d5e0b7809b6040e18c8 (diff)
downloadffmpeg-streaming-dd22cfb1015dea8f9db29a2334662bd35c3d3f79.zip
ffmpeg-streaming-dd22cfb1015dea8f9db29a2334662bd35c3d3f79.tar.gz
rtsp: Parse and use the Content-Base reply header, if present
This fixes playing RTSP urls with query parameters. Originally committed as revision 25755 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rtspdec.c')
-rw-r--r--libavformat/rtspdec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/rtspdec.c b/libavformat/rtspdec.c
index fd74b08..213f709 100644
--- a/libavformat/rtspdec.c
+++ b/libavformat/rtspdec.c
@@ -105,6 +105,9 @@ int ff_rtsp_setup_input_streams(AVFormatContext *s, RTSPMessageHeader *reply)
av_freep(&content);
return AVERROR_INVALIDDATA;
}
+ if (reply->content_base[0])
+ av_strlcpy(rt->control_uri, reply->content_base,
+ sizeof(rt->control_uri));
av_log(s, AV_LOG_VERBOSE, "SDP:\n%s\n", content);
/* now we got the SDP description, we parse it */
OpenPOWER on IntegriCloud