summaryrefslogtreecommitdiff
path: root/libavcodec/vp8.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2014-01-20 13:12:54 +0100
committerAnton Khirnov <anton@khirnov.net>2014-02-04 11:21:07 +0100
commite46ad30a808744ddf3855567e162292a4eaabac7 (patch)
tree74468a20aad9e84b0965f13187025f22096b75b0 /libavcodec/vp8.h
parent33c859c142ef3f49b7a6227014ad92a680cf4d74 (diff)
vp8: use a fixed-size edge emu buffer
The reason is the same as for e588615d938f8581f0d6f3771662d08cadfc00de Based on a patch by Ronald S. Bultje <rsbultje@gmail.com>
Diffstat (limited to 'libavcodec/vp8.h')
-rw-r--r--libavcodec/vp8.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/vp8.h b/libavcodec/vp8.h
index 6555629806..6d864b9a7f 100644
--- a/libavcodec/vp8.h
+++ b/libavcodec/vp8.h
@@ -120,7 +120,9 @@ typedef struct VP8ThreadData {
#endif
int thread_mb_pos; // (mb_y << 16) | (mb_x & 0xFFFF)
int wait_mb_pos; // What the current thread is waiting on.
- uint8_t *edge_emu_buffer;
+
+#define EDGE_EMU_LINESIZE 32
+ DECLARE_ALIGNED(16, uint8_t, edge_emu_buffer)[21 * EDGE_EMU_LINESIZE];
VP8FilterStrength *filter_strength;
} VP8ThreadData;