} else if (av_stristart(p, "Authentication-Info:", &p) && rt) {
p += strspn(p, SPACE_CHARS);
ff_http_auth_handle_header(&rt->auth_state, "Authentication-Info", p);
- } else if (av_stristart(p, "Content-Base:", &p)) {
+ } else if (av_stristart(p, "Content-Base:", &p) && rt) {
p += strspn(p, SPACE_CHARS);
- av_strlcpy(reply->content_base, p , sizeof(reply->content_base));
+ if (method && !strcmp(method, "DESCRIBE"))
+ av_strlcpy(rt->control_uri, p , sizeof(rt->control_uri));
}
}
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 */