|
|
@ -234,7 +234,7 @@ void dumpRtspToMp4(const char* rtspUrl, const char* outputPath, uint32_t duratio
|
|
|
|
{
|
|
|
|
{
|
|
|
|
av_dict_set(&options, "username", userName.c_str(), 0); // Replace with actual username
|
|
|
|
av_dict_set(&options, "username", userName.c_str(), 0); // Replace with actual username
|
|
|
|
av_dict_set(&options, "password", password.c_str(), 0); // Replace with actual password
|
|
|
|
av_dict_set(&options, "password", password.c_str(), 0); // Replace with actual password
|
|
|
|
|
|
|
|
|
|
|
|
char auth[512] = { 0 };
|
|
|
|
char auth[512] = { 0 };
|
|
|
|
snprintf(auth, sizeof(auth), "%s:%s@", userName.c_str(), password.c_str());
|
|
|
|
snprintf(auth, sizeof(auth), "%s:%s@", userName.c_str(), password.c_str());
|
|
|
|
|
|
|
|
|
|
|
|