avutil/internal: Move FF_MEMORY_POISON to its only user

Namely mem.c.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2024-03-28 20:19:28 +01:00
parent 8041a91a32
commit 0f78b26e9c
2 changed files with 2 additions and 2 deletions

View File

@ -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)))

View File

@ -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.