diff options
author | Martin Storsjö <martin@martin.st> | 2010-11-15 15:08:53 +0000 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2010-11-15 15:08:53 +0000 |
commit | dd22cfb1015dea8f9db29a2334662bd35c3d3f79 (patch) | |
tree | b9e8ae2adf175fdc0835c9c9f46fa57013b2c6ab /libavformat/rtspdec.c | |
parent | f3d77632d707ca6497289d5e0b7809b6040e18c8 (diff) | |
download | ffmpeg-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.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/rtspdec.c b/libavformat/rtspdec.c index fd74b08c53..213f7095fb 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 */ |