diff options
author | John Stebbins <[email protected]> | 2015-10-14 15:26:44 -0700 |
---|---|---|
committer | John Stebbins <[email protected]> | 2015-10-14 15:30:16 -0700 |
commit | 10e3deb6cf13ebbe2020a7736a231db68e6ab27a (patch) | |
tree | ac7339f7ad63238dc779e3b6899ceaf9c018d130 /libhb/work.c | |
parent | e918e48bfb3f0512dc3d246c0f233ca4bbe28918 (diff) |
grayscale: make it a real filter
It only worked properly with the x264 encoder. Now it works with all
encoders.
Diffstat (limited to 'libhb/work.c')
-rw-r--r-- | libhb/work.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libhb/work.c b/libhb/work.c index 8ea9db918..825654524 100644 --- a/libhb/work.c +++ b/libhb/work.c @@ -340,9 +340,6 @@ void hb_display_job_info(hb_job_t *job) } } - if ( job->grayscale ) - hb_log( " + grayscale mode" ); - hb_log( " + Output geometry" ); hb_log( " + storage dimensions: %d x %d", job->width, job->height ); hb_log( " + pixel aspect ratio: %d : %d", job->par.num, job->par.den ); @@ -971,6 +968,7 @@ static void do_job(hb_job_t *job) memcpy(init.crop, title->crop, sizeof(int[4])); init.vrate = title->vrate; init.cfr = 0; + init.grayscale = 0; for( i = 0; i < hb_list_count( job->list_filter ); ) { hb_filter_object_t * filter = hb_list_item( job->list_filter, i ); @@ -990,6 +988,7 @@ static void do_job(hb_job_t *job) memcpy(job->crop, init.crop, sizeof(int[4])); job->vrate = init.vrate; job->cfr = init.cfr; + job->grayscale = init.grayscale; // Perform filter post_init which informs filters of final // job configuration. e.g. rendersub filter needs to know the |