diff options
author | Diego Biurrun <diego@biurrun.de> | 2013-02-08 15:55:52 +0100 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2013-02-13 20:23:39 +0100 |
commit | c6507946d428ee082676d5917fbb3eb0d1d7eb2e (patch) | |
tree | fbb72fc9588bb89559975e09aa84955a1680155b /libavcodec/utils.c | |
parent | 157542ebc15dd175e5b4d14ffa92afd74ab4a991 (diff) | |
download | ffmpeg-c6507946d428ee082676d5917fbb3eb0d1d7eb2e.tar.gz |
dsputil: Move STRIDE_ALIGN macro to the only place it is used
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r-- | libavcodec/utils.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 19c8a99ff5..86e154621b 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -25,6 +25,7 @@ * utils. */ +#include "config.h" #include "libavutil/avassert.h" #include "libavutil/avstring.h" #include "libavutil/channel_layout.h" @@ -156,6 +157,12 @@ void avcodec_set_dimensions(AVCodecContext *s, int width, int height) #define INTERNAL_BUFFER_SIZE (32 + 1) +#if (ARCH_ARM && HAVE_NEON) || ARCH_PPC || HAVE_MMX +# define STRIDE_ALIGN 16 +#else +# define STRIDE_ALIGN 8 +#endif + void avcodec_align_dimensions2(AVCodecContext *s, int *width, int *height, int linesize_align[AV_NUM_DATA_POINTERS]) { |