aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/common.h
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2006-08-31 19:14:00 +0000
committerLuca Barbato <lu_zero@gentoo.org>2006-08-31 19:14:00 +0000
commit9814587500d819e88b92e80ed43a2cc1e1a869b7 (patch)
tree97171fdd22a0cda2242d0d2d0f41a340c7c7396b /libavutil/common.h
parent12ccec0f15f1062c807a0f233561ded6f24d7879 (diff)
downloadffmpeg-9814587500d819e88b92e80ed43a2cc1e1a869b7.tar.gz
Align the input buffer in ffplay, introduce a public macro for aligned declarations
Update the avcodec_decode_audio and the float_to_int16 descriptions accordingly Originally committed as revision 6147 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/common.h')
-rw-r--r--libavutil/common.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libavutil/common.h b/libavutil/common.h
index 60ea46a83d..e47688be99 100644
--- a/libavutil/common.h
+++ b/libavutil/common.h
@@ -364,6 +364,13 @@ tend= read_time();\
#endif
/* memory */
+
+#ifdef __GNUC__
+ #define DECLARE_ALIGNED(n,t,v) t v __attribute__ ((aligned (n)))
+#else
+ #define DECLARE_ALIGNED(n,t,v) __declspec(align(n)) t v
+#endif
+
void *av_malloc(unsigned int size);
void *av_realloc(void *ptr, unsigned int size);
void av_free(void *ptr);