summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2020-05-20 09:01:39 -0600
committerJohn Stebbins <[email protected]>2020-05-20 09:04:24 -0600
commitd3dd2187b498255705c674a62f7d41bb162b4b5a (patch)
treead7a4b4fdb9434874b3a301713645b6df436d6b0
parent900b07e0f2b00154f29da2d07816d93ef5e5690e (diff)
filters: fix 'color_range'
The filters (decomb, denoise, detelecine, lapsharp, nlmeans, unsharp) were all setting color_range to the source color_range after it had already been converted in decavcodec.
-rw-r--r--libhb/work.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libhb/work.c b/libhb/work.c
index 65c21eb5e..f24a15928 100644
--- a/libhb/work.c
+++ b/libhb/work.c
@@ -1545,10 +1545,11 @@ static void do_job(hb_job_t *job)
// decavcodec.c. This may be different than title->pix_fmt
// since we will likely only support planar YUV color formats.
init.pix_fmt = AV_PIX_FMT_YUV420P;
+ 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_range = title->color_range;
init.geometry.width = title->geometry.width;
init.geometry.height = title->geometry.height;