summaryrefslogtreecommitdiffstats
path: root/libhb/work.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2010-12-17 16:31:54 +0000
committerjstebbins <[email protected]>2010-12-17 16:31:54 +0000
commit3bc190cb636fc3d5e9bff79b0b0be534a5d1d2d3 (patch)
treed0663976f20158be6967c1f8c8ae64012d9c671e /libhb/work.c
parent8289b05efce0dcbe22881abd2a060b3998641cdf (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.c1
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 );
}
}