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
7575 #endif
7676
7777
78−#define FF_MEMORY_POISON 0x2a
79−
8078 #define FF_ALLOC_TYPED_ARRAY(p, nelem) (p = av_malloc_array(nelem, sizeof(*p)))
8179 #define FF_ALLOCZ_TYPED_ARRAY(p, nelem) (p = av_calloc(nelem, sizeof(*p)))
8280
libavutil/mem.c+2−0
@@ -64,6 +64,8 @@ void free(void *ptr); · 63 unmodified lines
6464
6565 #define ALIGN (HAVE_SIMD_ALIGN_64 ? 64 : (HAVE_SIMD_ALIGN_32 ? 32 : 16))
6666
67+#define FF_MEMORY_POISON 0x2a
68+
6769 /* NOTE: if you want to override these functions with your own
6870 * implementations (not recommended) you have to link libav* as
6971 * 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