From ffc6edc39d29673bfdb4fe2e502140beb5584b9a Mon Sep 17 00:00:00 2001 From: John Stebbins Date: Sun, 14 Apr 2019 08:31:23 -0600 Subject: work: fix pix_fmt init input to filter pipeline The pix_fmt of the filter input is the format output by decavcodec.c which is currently YUV420P Fixes https://github.com/HandBrake/HandBrake/issues/2041 --- libhb/work.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libhb/work.c') diff --git a/libhb/work.c b/libhb/work.c index e22fbaca9..76fef1bf3 100644 --- a/libhb/work.c +++ b/libhb/work.c @@ -1464,7 +1464,11 @@ static void do_job(hb_job_t *job) init.time_base.num = 1; init.time_base.den = 90000; init.job = job; - init.pix_fmt = title->pix_fmt; + // TODO: When more complete pix format support is complete this + // needs to be updated to reflect the pix_fmt output by + // 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_prim = title->color_prim; init.color_transfer = title->color_transfer; init.color_matrix = title->color_matrix; -- cgit v1.2.3