aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/motion_est.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-01-15 23:58:51 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2016-04-29 13:04:17 +0200
commit4e4afe29b9893c577e80c9c5fed0f2dd23b6e17e (patch)
tree828342dcb063a50e7ece892406b9ec86d138f34c /libavcodec/motion_est.h
parent2a158602273f9e8875280e5202de6d7e19845c80 (diff)
downloadffmpeg-4e4afe29b9893c577e80c9c5fed0f2dd23b6e17e.tar.gz
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 <michael@niedermayer.cc> (cherry picked from commit d7c75a5db0cf3674e1a5c3e51ac024ef2ef6f09f) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/motion_est.h')
-rw-r--r--libavcodec/motion_est.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/motion_est.h b/libavcodec/motion_est.h
index 6c0c674b2e..0f236b4066 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 FF_ME_ZERO 0