DeckLink disp.: fixed parsing of "hdr=" option

This commit is contained in:
Martin Pulec
2020-08-04 15:47:33 +02:00
parent b6a45ebc3f
commit ba44dc5a35

View File

@@ -1012,8 +1012,8 @@ static bool settings_init(struct state_decklink *s, const char *fmt,
s->low_latency = strcasecmp(ptr, "low-latency") == 0;
} else if (strcasecmp(ptr, "quad-square") == 0 || strcasecmp(ptr, "no-quad-square") == 0) {
s->quad_square_division_split = strcasecmp(ptr, "quad-square") == 0;
} else if (strcasecmp(ptr, "hdr") == 0) {
if (strcasecmp(ptr, "hdr=") == 0) {
} else if (strncasecmp(ptr, "hdr", strlen("hdr")) == 0) {
if (strncasecmp(ptr, "hdr=", strlen("hdr=")) == 0) {
string mode{ptr + strlen("hdr=")};
std::for_each(std::begin(mode), std::end(mode), [](char& c) {
c = static_cast<char>(std::toupper(static_cast<unsigned char>(c)));