avutil/internal: Move FF_MEMORY_POISON to its only user

Namely mem.c.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
release/7.1
Andreas Rheinhardt 9 months ago
parent 8041a91a32
commit 0f78b26e9c
  1. 2
      libavutil/internal.h
  2. 2
      libavutil/mem.c

@ -75,8 +75,6 @@
#endif #endif
#define FF_MEMORY_POISON 0x2a
#define FF_ALLOC_TYPED_ARRAY(p, nelem) (p = av_malloc_array(nelem, sizeof(*p))) #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))) #define FF_ALLOCZ_TYPED_ARRAY(p, nelem) (p = av_calloc(nelem, sizeof(*p)))

@ -64,6 +64,8 @@ void free(void *ptr);
#define ALIGN (HAVE_SIMD_ALIGN_64 ? 64 : (HAVE_SIMD_ALIGN_32 ? 32 : 16)) #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 /* NOTE: if you want to override these functions with your own
* implementations (not recommended) you have to link libav* as * implementations (not recommended) you have to link libav* as
* dynamic libraries and remove -Wl,-Bsymbolic from the linker flags. * dynamic libraries and remove -Wl,-Bsymbolic from the linker flags.

Loading…
Cancel
Save