summaryrefslogtreecommitdiff
path: root/libavutil/mem.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-08-01 08:36:09 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-02-24 12:56:49 +0100
commit636631d9db82f5e86330ab42dacc8a106684b349 (patch)
tree86274afefd600d2ef634dc8d1252807ce9f16721 /libavutil/mem.c
parent84f16bb5e68dc47eca4dc96b3391c58471cd7328 (diff)
downloadffmpeg-636631d9db82f5e86330ab42dacc8a106684b349.tar.gz
Remove unnecessary libavutil/(avutil|common|internal).h inclusions
Some of these were made possible by moving several common macros to libavutil/macros.h. While just at it, also improve the other headers a bit. Reviewed-by: Martin Storsjö <martin@martin.st> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavutil/mem.c')
-rw-r--r--libavutil/mem.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/libavutil/mem.c b/libavutil/mem.c
index 194d880587..a0c9a42849 100644
--- a/libavutil/mem.c
+++ b/libavutil/mem.c
@@ -37,10 +37,13 @@
#include <malloc.h>
#endif
-#include "avutil.h"
-#include "common.h"
+#include "attributes.h"
+#include "avassert.h"
#include "dynarray.h"
+#include "error.h"
+#include "internal.h"
#include "intreadwrite.h"
+#include "macros.h"
#include "mem.h"
#ifdef MALLOC_PREFIX
@@ -59,8 +62,6 @@ void free(void *ptr);
#endif /* MALLOC_PREFIX */
-#include "mem_internal.h"
-
#define ALIGN (HAVE_AVX512 ? 64 : (HAVE_AVX ? 32 : 16))
/* NOTE: if you want to override these functions with your own