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.