summaryrefslogtreecommitdiff
path: root/libavcodec/common.h
diff options
context:
space:
mode:
authorFabrice Bellard <fabrice@bellard.org>2003-01-23 23:03:09 +0000
committerFabrice Bellard <fabrice@bellard.org>2003-01-23 23:03:09 +0000
commit8e1e6f31c142aeb27d3dd7df539c47b35d7eb903 (patch)
treea1e73532f1654c52016b9ccaf233aa4add95dfd3 /libavcodec/common.h
parent47e2a6e6c521a007f78b23ed554a1b81defef936 (diff)
use av_malloc() functions - added av_strdup and av_realloc()
Originally committed as revision 1505 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/common.h')
-rw-r--r--libavcodec/common.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/common.h b/libavcodec/common.h
index 31bfbb1c90..bdfa398a47 100644
--- a/libavcodec/common.h
+++ b/libavcodec/common.h
@@ -931,6 +931,11 @@ if((y)<(x)){\
#define CLAMP_TO_8BIT(d) ((d > 0xff) ? 0xff : (d < 0) ? 0 : d)
+/* avoid usage of various functions */
+#define malloc please_use_av_malloc
+#define free please_use_av_free
+#define realloc please_use_av_realloc
+
#endif /* HAVE_AV_CONFIG_H */
#endif /* COMMON_H */