From e46ad30a808744ddf3855567e162292a4eaabac7 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Mon, 20 Jan 2014 13:12:54 +0100 Subject: vp8: use a fixed-size edge emu buffer The reason is the same as for e588615d938f8581f0d6f3771662d08cadfc00de Based on a patch by Ronald S. Bultje --- libavcodec/vp8.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libavcodec/vp8.h') 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; -- cgit v1.2.3