summaryrefslogtreecommitdiffstats
path: root/libhb/encx265.c
diff options
context:
space:
mode:
Diffstat (limited to 'libhb/encx265.c')
-rw-r--r--libhb/encx265.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/libhb/encx265.c b/libhb/encx265.c
index 016a2248c..6c22a3d12 100644
--- a/libhb/encx265.c
+++ b/libhb/encx265.c
@@ -174,7 +174,12 @@ int encx265Init(hb_work_object_t *w, hb_job_t *job)
strcpy(transfer, "bt709");
strcpy(colormatrix, "bt709");
break;
- case 4: // custom
+ case 4: // ITU BT.2020 UHD content
+ strcpy(colorprim, "bt2020");
+ strcpy(transfer, "bt709");
+ strcpy(colormatrix, "bt2020nc");
+ break;
+ case 5: // custom
snprintf(colorprim, sizeof(colorprim), "%d", job->color_prim);
snprintf(transfer, sizeof(transfer), "%d", job->color_transfer);
snprintf(colormatrix, sizeof(colormatrix), "%d", job->color_matrix);