diff options
author | John Stebbins <[email protected]> | 2020-05-20 09:01:39 -0600 |
---|---|---|
committer | John Stebbins <[email protected]> | 2020-05-20 09:05:04 -0600 |
commit | 26c5db7914dda09f6878a626185f9d3090ed818a (patch) | |
tree | 1ce93ff4a521384edf6c7eed4e72c450a9cb3bf6 | |
parent | b512ffa9fc4af81bf7b03ae991123e15b92678a3 (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.
(cherry picked from commit d3dd2187b498255705c674a62f7d41bb162b4b5a)
-rw-r--r-- | libhb/work.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libhb/work.c b/libhb/work.c index 8b4dddc92..43c78b3c8 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; |