解决windows编译问题

This commit is contained in:
xiongziliang 2018-07-04 17:07:07 +08:00
parent fcbf7cb122
commit 7979fae23e

View File

@ -228,9 +228,9 @@ bool RtspPlayer::handleAuthenticationFailure(const string &paramsStr) {
return false; return false;
} }
char realm[paramsStr.size()]; char realm[1024];
char nonce[paramsStr.size()]; char nonce[1024];
char stale[paramsStr.size()]; char stale[1024];
if (sscanf(paramsStr.data(), "Digest realm=\"%[^\"]\", nonce=\"%[^\"]\", stale=%[a-zA-Z]", realm, nonce, stale) == 3) { if (sscanf(paramsStr.data(), "Digest realm=\"%[^\"]\", nonce=\"%[^\"]\", stale=%[a-zA-Z]", realm, nonce, stale) == 3) {
(*this)[kRtspRealm] = realm; (*this)[kRtspRealm] = realm;