summaryrefslogtreecommitdiffstats
path: root/libhb/hb.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2008-12-05 16:02:38 +0000
committerjstebbins <[email protected]>2008-12-05 16:02:38 +0000
commite1cbbcb2bbfd8307a1f2941549f97a0d174defd8 (patch)
tree51cc5e0b061d5c547422c61755dd059580dae98c /libhb/hb.c
parentdea975e8c71f793ce0ed95c137e83528a501c643 (diff)
fix some floating point rounding errors in aspect ratio calculations
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2009 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/hb.c')
-rw-r--r--libhb/hb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libhb/hb.c b/libhb/hb.c
index 058924848..31b45c2df 100644
--- a/libhb/hb.c
+++ b/libhb/hb.c
@@ -589,7 +589,7 @@ void hb_set_anamorphic_size( hb_job_t * job,
if ( job->maxWidth && (job->maxWidth < job->width) )
width = job->maxWidth;
- height = (double)width / storage_aspect;
+ height = ((double)width / storage_aspect) + 0.5;
if ( job->maxHeight && (job->maxHeight < height) )
height = job->maxHeight;