summaryrefslogtreecommitdiffstats
path: root/libhb/common.h
diff options
context:
space:
mode:
authorjbrjake <[email protected]>2008-10-18 21:31:22 +0000
committerjbrjake <[email protected]>2008-10-18 21:31:22 +0000
commitd991c11bd90af5dbc04d543ab881c05be34aecfc (patch)
tree58a06c74e9f8fc2ffc825beefc32fda73b37e37e /libhb/common.h
parent6c7593e540de0847c2cb0771f545b0bcf0e7d34b (diff)
Makes sure loose anamorphic respects max width and height settings, and removes a bunch of code by repurposing MULTIPLE_MOD() (thanks j45!).
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1843 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/common.h')
-rw-r--r--libhb/common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libhb/common.h b/libhb/common.h
index 47f5503a0..5c89430d3 100644
--- a/libhb/common.h
+++ b/libhb/common.h
@@ -27,7 +27,7 @@
#define EVEN( a ) ( (a) + ( (a) & 1 ) )
#define MULTIPLE_16( a ) ( 16 * ( ( (a) + 8 ) / 16 ) )
-#define MULTIPLE_MOD( a, b ) ( b * ( ( (a) + (b / 2) ) / b ) )
+#define MULTIPLE_MOD( a, b ) ( b * ( ( (a) + (b / 2) - 1) / b ) )
#define HB_DVD_READ_BUFFER_SIZE 2048