From d7c75a5db0cf3674e1a5c3e51ac024ef2ef6f09f Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 15 Jan 2016 23:58:51 +0100 Subject: [PATCH] avcodec/motion_est: Attempt to fix "short data segment overflowed" on IA64 This decreases the MV related encoding table sizes This should have little effect on real world video encoding performance Signed-off-by: Michael Niedermayer --- libavcodec/motion_est.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libavcodec/motion_est.h b/libavcodec/motion_est.h index 9cdd637aaa..2d3c02ae87 100644 --- a/libavcodec/motion_est.h +++ b/libavcodec/motion_est.h @@ -29,7 +29,11 @@ struct MpegEncContext; +#if ARCH_IA64 // Limit static arrays to avoid gcc failing "short data segment overflowed" +#define MAX_MV 1024 +#else #define MAX_MV 4096 +#endif #define MAX_DMV (2*MAX_MV) #define ME_MAP_SIZE 64