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
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user