# HG changeset patch # User lu_zero # Date 1157051640 0 # Node ID 5111e87117b7022559db6f6b3eafb671a58dc028 # Parent 6239181c9187d0a7782ea0332daee5c67e0e36c9 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 diff -r 6239181c9187 -r 5111e87117b7 common.h --- a/common.h Mon Aug 28 09:06:04 2006 +0000 +++ b/common.h Thu Aug 31 19:14:00 2006 +0000 @@ -364,6 +364,13 @@ #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);