summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-01-15 23:58:51 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2016-01-16 00:56:05 +0100
commitd7c75a5db0cf3674e1a5c3e51ac024ef2ef6f09f (patch)
treef1527e2223ce7ef79f97cf6daca65fb6298a2a13 /libavcodec
parent564dd3f0f40008be8943af59686c0e8c4d67dd08 (diff)
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>
Diffstat (limited to 'libavcodec')
-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 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