From 9814587500d819e88b92e80ed43a2cc1e1a869b7 Mon Sep 17 00:00:00 2001 From: Luca Barbato Date: Thu, 31 Aug 2006 19:14:00 +0000 Subject: 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 --- libavutil/common.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libavutil/common.h') 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); -- cgit v1.2.3