History

avutil/internal: Move FF_MEMORY_POISON to its only user

Namely mem.c.

Andreas Rheinhardt committed 2 years ago

Commit 0f78b261 parent 8041a912 files · +2 −2Browse files

Unified · Split

2 files
  1. libavutil/internal.h +0 −2
  2. libavutil/mem.c +2 −0
libavutil/internal.h+0−2
@@ -75,8 +75,6 @@ · 74 unmodified lines
75#endif75#endif
76 76
77 77
78#define FF_MEMORY_POISON 0x2a
79
80#define FF_ALLOC_TYPED_ARRAY(p, nelem) (p = av_malloc_array(nelem, sizeof(*p)))78#define FF_ALLOC_TYPED_ARRAY(p, nelem) (p = av_malloc_array(nelem, sizeof(*p)))
81#define FF_ALLOCZ_TYPED_ARRAY(p, nelem) (p = av_calloc(nelem, sizeof(*p)))79#define FF_ALLOCZ_TYPED_ARRAY(p, nelem) (p = av_calloc(nelem, sizeof(*p)))
82 80
libavutil/mem.c+2−0
@@ -64,6 +64,8 @@ void free(void *ptr); · 63 unmodified lines
64 64
65#define ALIGN (HAVE_SIMD_ALIGN_64 ? 64 : (HAVE_SIMD_ALIGN_32 ? 32 : 16))65#define ALIGN (HAVE_SIMD_ALIGN_64 ? 64 : (HAVE_SIMD_ALIGN_32 ? 32 : 16))
66 66
67#define FF_MEMORY_POISON 0x2a
68
67/* NOTE: if you want to override these functions with your own69/* NOTE: if you want to override these functions with your own
68 * implementations (not recommended) you have to link libav* as70 * implementations (not recommended) you have to link libav* as
69 * dynamic libraries and remove -Wl,-Bsymbolic from the linker flags.71 * dynamic libraries and remove -Wl,-Bsymbolic from the linker flags.

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t