summaryrefslogtreecommitdiffstats
path: root/libhb/common.h
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2009-04-13 18:03:32 +0000
committerjstebbins <[email protected]>2009-04-13 18:03:32 +0000
commit747b80016860c58ef9dd7090cdfe55c28b654d6d (patch)
tree3fb1722e4b8776e25f768c903c45bc17a35df445 /libhb/common.h
parentcdad0e688118e38d524536a26cde8f906eec9017 (diff)
Make MULTIPLE_MOD handle mod 1 correctly
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2323 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 19b8d2217..1fa3d4fe1 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) - 1) / b ) )
+#define MULTIPLE_MOD( a, b ) ((b==1)?a:( b * ( ( (a) + (b / 2) - 1) / b ) ))
#define HB_DVD_READ_BUFFER_SIZE 2048