From a41a4f4b8a5b15b3dadf0c8818c1edc85fee5977 Mon Sep 17 00:00:00 2001 From: thegobot Date: Sat, 15 Jan 2022 16:25:24 +0800 Subject: [PATCH] Update VideoHelper.h --- source/core/owt_base/VideoHelper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/core/owt_base/VideoHelper.h b/source/core/owt_base/VideoHelper.h index fd3586028..915e375f5 100644 --- a/source/core/owt_base/VideoHelper.h +++ b/source/core/owt_base/VideoHelper.h @@ -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)) { videoSize = {(unsigned int)std::atoi(resolution.substr(1, x).c_str()), (unsigned int)std::atoi(resolution.substr(x+1).c_str())}; return true; }