aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/mem.c
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2012-04-15 22:35:19 +0200
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2012-04-16 22:13:12 +0200
commit1a65d50ee75372519625fff49d1d1a95ff5f4a6f (patch)
tree9a1ef99631b26453d32d5bd158ae89215674d3a3 /libavutil/mem.c
parent071292b8c952bd11ca6782cce59ab70e3edfeb21 (diff)
downloadffmpeg-1a65d50ee75372519625fff49d1d1a95ff5f4a6f.tar.gz
mem.c: fix wrong comment.
Overwriting the av_malloc etc. functions is not easily possible anymore, even for systems that support overriding symbols in shared libraries in principle. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Diffstat (limited to 'libavutil/mem.c')
-rw-r--r--libavutil/mem.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libavutil/mem.c b/libavutil/mem.c
index d711350fda..de22ad8db8 100644
--- a/libavutil/mem.c
+++ b/libavutil/mem.c
@@ -61,9 +61,10 @@ void free(void *ptr);
#define ALIGN (HAVE_AVX ? 32 : 16)
-/* You can redefine av_malloc and av_free in your project to use your
- memory allocator. You do not need to suppress this file because the
- linker will do it automatically. */
+/* 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.
+ * Note that this will cost performance. */
static size_t max_alloc_size= INT_MAX;