Skip to content
This repository was archived by the owner on Oct 23, 2024. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion source/core/owt_base/VideoHelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class VideoResolutionHelper {
} else {
std::string::size_type r = resolution.find("r");
std::string::size_type x = resolution.find("x");
if ((r != std::string::npos) && (x != std::string::npos) && (x > 2)) {
if ((r != std::string::npos) && (x != std::string::npos) && (x > 0)) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the result of "rx500" in this change

videoSize = {(unsigned int)std::atoi(resolution.substr(1, x).c_str()), (unsigned int)std::atoi(resolution.substr(x+1).c_str())};
return true;
}
Expand Down