From 747b80016860c58ef9dd7090cdfe55c28b654d6d Mon Sep 17 00:00:00 2001 From: jstebbins Date: Mon, 13 Apr 2009 18:03:32 +0000 Subject: Make MULTIPLE_MOD handle mod 1 correctly git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2323 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- libhb/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libhb') 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 -- cgit v1.2.3