avcodec/motion_est: Attempt to fix "short data segment overflowed" on IA64
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 15 Jan 2016 22:58:51 +0000 (23:58 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 29 Apr 2016 11:04:17 +0000 (13:04 +0200)
This decreases the MV related encoding table sizes
This should have little effect on real world video encoding performance

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit d7c75a5db0cf3674e1a5c3e51ac024ef2ef6f09f)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/motion_est.h

index 6c0c674..0f236b4 100644 (file)
 
 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 FF_ME_ZERO 0