diff options
author | John Stebbins <[email protected]> | 2019-04-14 08:31:23 -0600 |
---|---|---|
committer | John Stebbins <[email protected]> | 2019-04-14 08:32:48 -0600 |
commit | ffc6edc39d29673bfdb4fe2e502140beb5584b9a (patch) | |
tree | ea3be028d6d666677e3129b0edccffafc8c09063 | |
parent | 99e1fdad9ac9bf68cf6f7cd35512fb85b6e1c450 (diff) |
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
-rw-r--r-- | libhb/work.c | 6 |
1 files changed, 5 insertions, 1 deletions
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; |