[FFmpeg-cvslog] avutil/internal: Move FF_MEMORY_POISON to its only user
Andreas Rheinhardt
git at videolan.org
Sun Mar 31 02:05:47 EET 2024
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Thu Mar 28 20:19:28 2024 +0100| [0f78b26e9caaf0a6419da9f03d024dbad661d867] | committer: Andreas Rheinhardt
avutil/internal: Move FF_MEMORY_POISON to its only user
Namely mem.c.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0f78b26e9caaf0a6419da9f03d024dbad661d867
---
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.
More information about the ffmpeg-cvslog
mailing list