Skip to content

Commit

Permalink
Merge pull request #132 from sundermann/more-robust-hdr-check
Browse files Browse the repository at this point in the history
Make HDR check more robust
  • Loading branch information
sundermann authored Feb 23, 2025
2 parents 9764a2e + 07c7567 commit 1163777
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/json_rpc_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ DynamicRange get_dynamic_range(const char* range)
{
if (strcmp(range, "DolbyVision") == 0 || strcmp(range, "dolbyHdr") == 0) {
return DOLBYVISION;
} else if (strcmp(range, "HDR") == 0 || strcmp(range, "HDR10") == 0 || strcmp(range, "hdr10") == 0 || strcmp(range, "hdr") == 0) {
} else if (strstr(range, "hdr") != NULL || strstr(range, "HDR") != NULL) {
return HDR10;
} else if (strcmp(range, "sdr") == 0 || strcmp(range, "none") == 0) {
return SDR;
Expand Down

0 comments on commit 1163777

Please sign in to comment.