diff options
author | jstebbins <[email protected]> | 2010-12-17 16:31:54 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2010-12-17 16:31:54 +0000 |
commit | 3bc190cb636fc3d5e9bff79b0b0be534a5d1d2d3 (patch) | |
tree | d0663976f20158be6967c1f8c8ae64012d9c671e /libhb/work.c | |
parent | 8289b05efce0dcbe22881abd2a060b3998641cdf (diff) |
prevent crash with strict ana and non-mod-2 dimensions.
and make par computation in loose ana a little more accurate.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3710 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/work.c')
-rw-r--r-- | libhb/work.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libhb/work.c b/libhb/work.c index cf8d4d464..9504d4dd3 100644 --- a/libhb/work.c +++ b/libhb/work.c @@ -449,6 +449,7 @@ static void do_job( hb_job_t * job, int cpu_count ) job->anamorphic.par_width >>= 1; job->anamorphic.par_height >>= 1; } + hb_reduce( &job->anamorphic.par_width, &job->anamorphic.par_height, job->anamorphic.par_width, job->anamorphic.par_height ); } } |