Skip to content

Commit 1163777

Browse files
authored
Merge pull request #132 from sundermann/more-robust-hdr-check
Make HDR check more robust
2 parents 9764a2e + 07c7567 commit 1163777

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/json_rpc_client.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ DynamicRange get_dynamic_range(const char* range)
2727
{
2828
if (strcmp(range, "DolbyVision") == 0 || strcmp(range, "dolbyHdr") == 0) {
2929
return DOLBYVISION;
30-
} else if (strcmp(range, "HDR") == 0 || strcmp(range, "HDR10") == 0 || strcmp(range, "hdr10") == 0 || strcmp(range, "hdr") == 0) {
30+
} else if (strstr(range, "hdr") != NULL || strstr(range, "HDR") != NULL) {
3131
return HDR10;
3232
} else if (strcmp(range, "sdr") == 0 || strcmp(range, "none") == 0) {
3333
return SDR;

0 commit comments

Comments
 (0)