diff options
author | Damiano Galassi <[email protected]> | 2021-01-25 09:34:23 +0100 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2021-01-25 09:34:23 +0100 |
commit | 818dbfe932eb2c6c484bd09fee04c5748963a1be (patch) | |
tree | 13dcd86d190ab72ca2c047a93142c63b283603fd /libhb/enc_qsv.c | |
parent | c543768a0874e7d896d9815c7a204c0c28d6b0f8 (diff) |
libhb: revert part of the previous colormatrix override commit.
Diffstat (limited to 'libhb/enc_qsv.c')
-rw-r--r-- | libhb/enc_qsv.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libhb/enc_qsv.c b/libhb/enc_qsv.c index 3790d42d1..be18d3048 100644 --- a/libhb/enc_qsv.c +++ b/libhb/enc_qsv.c @@ -1058,9 +1058,9 @@ int encqsvInit(hb_work_object_t *w, hb_job_t *job) pv->param.videoParam->AsyncDepth = job->qsv.async_depth; // set and enable colorimetry (video signal information) - pv->param.videoSignalInfo.ColourPrimaries = job->color_prim; - pv->param.videoSignalInfo.TransferCharacteristics = job->color_transfer; - pv->param.videoSignalInfo.MatrixCoefficients = job->color_matrix; + pv->param.videoSignalInfo.ColourPrimaries = hb_output_color_prim(job); + pv->param.videoSignalInfo.TransferCharacteristics = hb_output_color_transfer(job); + pv->param.videoSignalInfo.MatrixCoefficients = hb_output_color_matrix(job); pv->param.videoSignalInfo.ColourDescriptionPresent = 1; // parse user-specified encoder options, if present @@ -1117,9 +1117,9 @@ int encqsvInit(hb_work_object_t *w, hb_job_t *job) // reload colorimetry in case values were set in encoder_options if (pv->param.videoSignalInfo.ColourDescriptionPresent) { - job->color_prim = pv->param.videoSignalInfo.ColourPrimaries; - job->color_transfer = pv->param.videoSignalInfo.TransferCharacteristics; - job->color_matrix = pv->param.videoSignalInfo.MatrixCoefficients; + job->color_prim_override = pv->param.videoSignalInfo.ColourPrimaries; + job->color_transfer_override = pv->param.videoSignalInfo.TransferCharacteristics; + job->color_matrix_override = pv->param.videoSignalInfo.MatrixCoefficients; } // sanitize values that may exceed the Media SDK variable size |