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
This commit is contained in:
Luca Barbato 2006-08-31 19:14:00 +00:00
parent 12ccec0f15
commit 9814587500
4 changed files with 22 additions and 4 deletions

View file

@ -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);