summaryrefslogtreecommitdiff
path: root/libavutil/macros.h
diff options
context:
space:
mode:
authorJanne Grunau <janne-libav@jannau.net>2015-12-10 21:49:30 +0100
committerJanne Grunau <janne-libav@jannau.net>2015-12-14 16:16:55 +0100
commit50078c1c8070dd8d1c329e8117ff30ec72489039 (patch)
tree87b1e0efac9fba09e7915d60859bfd1973848244 /libavutil/macros.h
parentdbce017913ce04966021a2f72e4f8fae5b4b7190 (diff)
libavutil: move FFALIGN macro from common.h to macros.h
Include macros.h explicitly in common.h so that external code using FFALIGN does not break. It was already implicitly included through version.h. Include macros.h in lls.h and internal.h for FFALIGN. lls.h was including common.h only for FFALIGN and internal.h was missing the include for FFALIGN. `make checkheaders` did not catch it because it's an internal header.
Diffstat (limited to 'libavutil/macros.h')
-rw-r--r--libavutil/macros.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavutil/macros.h b/libavutil/macros.h
index bf3eb9b9a4..3e7b00559f 100644
--- a/libavutil/macros.h
+++ b/libavutil/macros.h
@@ -45,4 +45,6 @@
#define AV_PRAGMA(s) _Pragma(#s)
+#define FFALIGN(x, a) (((x)+(a)-1)&~((a)-1))
+
#endif /* AVUTIL_MACROS_H */