summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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