diff options
Diffstat (limited to 'libhb/encx265.c')
-rw-r--r-- | libhb/encx265.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libhb/encx265.c b/libhb/encx265.c index 9bf0c21ea..5e6600819 100644 --- a/libhb/encx265.c +++ b/libhb/encx265.c @@ -155,9 +155,9 @@ int encx265Init(hb_work_object_t *w, hb_job_t *job) * flags, if any, should be set in the x265_param struct). */ char colorprim[11], transfer[11], colormatrix[11]; - snprintf(colorprim, sizeof(colorprim), "%d", job->color_prim); - snprintf(transfer, sizeof(transfer), "%d", job->color_transfer); - snprintf(colormatrix, sizeof(colormatrix), "%d", job->color_matrix); + snprintf(colorprim, sizeof(colorprim), "%d", hb_output_color_prim(job)); + snprintf(transfer, sizeof(transfer), "%d", hb_output_color_transfer(job)); + snprintf(colormatrix, sizeof(colormatrix), "%d", hb_output_color_matrix(job)); if (param_parse(pv, param, "colorprim", colorprim) || param_parse(pv, param, "transfer", transfer) || @@ -190,9 +190,9 @@ int encx265Init(hb_work_object_t *w, hb_job_t *job) * Reload colorimetry settings in case custom * values were set in the encoder_options string. */ - job->color_prim = param->vui.colorPrimaries; - job->color_transfer = param->vui.transferCharacteristics; - job->color_matrix = param->vui.matrixCoeffs; + job->color_prim_override = param->vui.colorPrimaries; + job->color_transfer_override = param->vui.transferCharacteristics; + job->color_matrix_override = param->vui.matrixCoeffs; /* * Settings which can't be overridden in the encodeer_options string |