summaryrefslogtreecommitdiffstats
path: root/libhb/work.c
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2021-01-24 17:16:19 +0100
committerDamiano Galassi <[email protected]>2021-01-24 17:16:19 +0100
commit0ec5e726dce7603f8389fa770d67db323167df80 (patch)
treea26cb3facb607a30bd4d92254a9bb4a4420ad05b /libhb/work.c
parent781749e9634b7fd4468d1c456c0059f80c06a404 (diff)
libhb: change the color-matrix cli option behavior. Set the color info at the begin of the pipeline. Fix a typo in the preset key that prevented it from working.
Diffstat (limited to 'libhb/work.c')
-rw-r--r--libhb/work.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libhb/work.c b/libhb/work.c
index 28ccebcbf..ab068173f 100644
--- a/libhb/work.c
+++ b/libhb/work.c
@@ -1456,9 +1456,9 @@ static void do_job(hb_job_t *job)
init.pix_fmt = get_best_pix_ftm(job);
init.color_range = AVCOL_RANGE_MPEG;
- init.color_prim = title->color_prim;
- init.color_transfer = title->color_transfer;
- init.color_matrix = title->color_matrix;
+ init.color_prim = job->color_prim;
+ init.color_transfer = job->color_transfer;
+ init.color_matrix = job->color_matrix;
init.geometry.width = title->geometry.width;
init.geometry.height = title->geometry.height;