]> git.sesse.net Git - ffmpeg/blobdiff - libavutil/common.h
lcldec.c: change #if CONFIG_ZLIB to #if CONFIG_ZLIB_DECODER.
[ffmpeg] / libavutil / common.h
index 15eaf9849d81d43e6e6e9a25fdd997f802754d70..11021dc8808f0dfbfcbcb30af2dbc18d3d14725a 100644 (file)
 
 #define FFSWAP(type,a,b) do{type SWAP_tmp= b; b= a; a= SWAP_tmp;}while(0)
 #define FF_ARRAY_ELEMS(a) (sizeof(a) / sizeof((a)[0]))
+#define FFALIGN(x, a) (((x)+(a)-1)&~((a)-1))
 
 /* misc math functions */
 extern const uint8_t ff_log2_tab[256];