diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2006-08-31 19:14:00 +0000 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2006-08-31 19:14:00 +0000 |
commit | 9814587500d819e88b92e80ed43a2cc1e1a869b7 (patch) | |
tree | 97171fdd22a0cda2242d0d2d0f41a340c7c7396b /libavutil/common.h | |
parent | 12ccec0f15f1062c807a0f233561ded6f24d7879 (diff) | |
download | ffmpeg-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.h | 7 |
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); |