summaryrefslogtreecommitdiffstats
path: root/libhb/common.h
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2010-06-26 22:51:00 +0000
committerjstebbins <[email protected]>2010-06-26 22:51:00 +0000
commit1658fac57fd999452af0ab4f45c023c615783766 (patch)
tree0f78cad0b62feff3ce76b6ad5a8a80dae0a4fce5 /libhb/common.h
parent4a6a10cebe0ff0943b4943f17ab3e4b82a408add (diff)
make hb_set_anamorphic_size keep storage aspect when maxHeight is applied
before, it would not recalculate width after changing height. also, in ana mode 3, fix storage asepct if !keep_display_aspect git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3411 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/common.h')
-rw-r--r--libhb/common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libhb/common.h b/libhb/common.h
index 7f2d61126..278c5f8d1 100644
--- a/libhb/common.h
+++ b/libhb/common.h
@@ -48,6 +48,7 @@
#define EVEN( a ) ( (a) + ( (a) & 1 ) )
#define MULTIPLE_16( a ) ( 16 * ( ( (a) + 8 ) / 16 ) )
#define MULTIPLE_MOD( a, b ) ((b==1)?a:( b * ( ( (a) + (b / 2) - 1) / b ) ))
+#define MULTIPLE_MOD_DOWN( a, b ) ((b==1)?a:( b * ( (a) / b ) ))
#define HB_DVD_READ_BUFFER_SIZE 2048