aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-03-28 20:19:28 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-03-31 00:08:43 +0100
commit0f78b26e9caaf0a6419da9f03d024dbad661d867 (patch)
tree5be4b9cfbcd3d5fd4bd921aa1049b485670ef473 /libavutil
parent8041a91a32be703f751dcb22d1e16e0e244941a7 (diff)
downloadffmpeg-0f78b26e9caaf0a6419da9f03d024dbad661d867.tar.gz
avutil/internal: Move FF_MEMORY_POISON to its only user
Namely mem.c. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/internal.h2
-rw-r--r--libavutil/mem.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/libavutil/internal.h b/libavutil/internal.h
index 5772b8a612..fe0b9d7a24 100644
--- a/libavutil/internal.h
+++ b/libavutil/internal.h
@@ -75,8 +75,6 @@
#endif
-#define FF_MEMORY_POISON 0x2a
-
#define FF_ALLOC_TYPED_ARRAY(p, nelem) (p = av_malloc_array(nelem, sizeof(*p)))
#define FF_ALLOCZ_TYPED_ARRAY(p, nelem) (p = av_calloc(nelem, sizeof(*p)))
diff --git a/libavutil/mem.c b/libavutil/mem.c
index 02d4cb791f..b205d3fb25 100644
--- a/libavutil/mem.c
+++ b/libavutil/mem.c
@@ -64,6 +64,8 @@ void free(void *ptr);
#define ALIGN (HAVE_SIMD_ALIGN_64 ? 64 : (HAVE_SIMD_ALIGN_32 ? 32 : 16))
+#define FF_MEMORY_POISON 0x2a
+
/* NOTE: if you want to override these functions with your own
* implementations (not recommended) you have to link libav* as
* dynamic libraries and remove -Wl,-Bsymbolic from the linker flags.