Attempting to increase the height would revert back to previous setting
due to rounding problems.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4333
b64f7644-9d1e-0410-96f1-
a4d463321fa5
job->anamorphic.dar_height = 0;
if (keep_height && pic_par == 2)
+ {
width = ((double)height * crop_width / crop_height);
+ width = MOD_ROUND(width, mod);
+ }
job->width = width;
job->height = height;
job->maxWidth = max_width;
#if !defined(_GHB_PREVIEW_H_)
#define _GHB_PREVIEW_H_
-#define MOD_ROUND(v,m) ((m==1)?v:(m * ((v + (m>>1) - 1) / m)))
+#define MOD_ROUND(v,m) ((m==1)?v:(m * ((v + (m>>1)) / m)))
#define MOD_DOWN(v,m) (m * (v / m))
#define MOD_UP(v,m) (m * ((v + m - 1) / m))