diff options
author | jstebbins <[email protected]> | 2009-04-13 18:03:32 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2009-04-13 18:03:32 +0000 |
commit | 747b80016860c58ef9dd7090cdfe55c28b654d6d (patch) | |
tree | 3fb1722e4b8776e25f768c903c45bc17a35df445 /libhb | |
parent | cdad0e688118e38d524536a26cde8f906eec9017 (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')
-rw-r--r-- | libhb/common.h | 2 |
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 |