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/rtsp.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/rtsp.c')
-rw-r--r-- | libavformat/rtsp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 1f55016366..cbb19f42e8 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -706,6 +706,9 @@ void ff_rtsp_parse_line(RTSPMessageHeader *reply, const char *buf, } else if (av_stristart(p, "Authentication-Info:", &p) && auth_state) { p += strspn(p, SPACE_CHARS); ff_http_auth_handle_header(auth_state, "Authentication-Info", p); + } else if (av_stristart(p, "Content-Base:", &p)) { + p += strspn(p, SPACE_CHARS); + av_strlcpy(reply->content_base, p , sizeof(reply->content_base)); } } |