[FFmpeg-devel] [PATCH 15/18] avutil/internal: Move FF_MEMORY_POISON to its only user
Andreas Rheinhardt
andreas.rheinhardt at outlook.com
Fri Mar 29 01:10:44 EET 2024
Namely mem.c.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
---
libavutil/internal.h | 2 --
libavutil/mem.c | 2 ++
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.
--
2.40.1
More information about the ffmpeg-devel
mailing list