Skip to content

Commit

Permalink
work: fix initial crop value provided to filters
Browse files Browse the repository at this point in the history
rendersub was using incorrect crop values when the cropscale filter is
removed from the filter chain.

Fixes HandBrake#2449
  • Loading branch information
jstebbins committed Mar 25, 2020
1 parent 0249f4c commit 2af5a05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libhb/work.c
Original file line number Diff line number Diff line change
Expand Up @@ -1553,7 +1553,7 @@ static void do_job(hb_job_t *job)
init.geometry.height = title->geometry.height;

init.geometry.par = job->par;
memcpy(init.crop, title->crop, sizeof(int[4]));
memset(init.crop, 0, sizeof(int[4]));
init.vrate = job->vrate;
init.cfr = 0;
init.grayscale = 0;
Expand Down

0 comments on commit 2af5a05

Please sign in to comment.