comparison common.h @ 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 5d02abb9a7e5
children 11be8e0d1344
comparison
equal deleted inserted replaced
103:6239181c9187 104:5111e87117b7
362 #define START_TIMER 362 #define START_TIMER
363 #define STOP_TIMER(id) {} 363 #define STOP_TIMER(id) {}
364 #endif 364 #endif
365 365
366 /* memory */ 366 /* memory */
367
368 #ifdef __GNUC__
369 #define DECLARE_ALIGNED(n,t,v) t v __attribute__ ((aligned (n)))
370 #else
371 #define DECLARE_ALIGNED(n,t,v) __declspec(align(n)) t v
372 #endif
373
367 void *av_malloc(unsigned int size); 374 void *av_malloc(unsigned int size);
368 void *av_realloc(void *ptr, unsigned int size); 375 void *av_realloc(void *ptr, unsigned int size);
369 void av_free(void *ptr); 376 void av_free(void *ptr);
370 377
371 #endif /* COMMON_H */ 378 #endif /* COMMON_H */