changeset 104:5111e87117b7 libavutil

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
author lu_zero
date Thu, 31 Aug 2006 19:14:00 +0000
parents 6239181c9187
children f731186c3562
files common.h
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);