diff --git a/gst/yadif/vf_yadif.c b/gst/yadif/vf_yadif.c index a0bec4a..9d9ebd7 100644 --- a/gst/yadif/vf_yadif.c +++ b/gst/yadif/vf_yadif.c @@ -111,17 +111,17 @@ filter_line_c_16bit (guint16 * dst, guint16 *next2 = parity ? cur : next; mrefs /= 2; prefs /= 2; FILTER} #endif void yadif_filter (GstYadif * yadif, int parity, int tff); -#ifdef HAVE_CPU_X86_64 +#if defined(HAVE_CPU_X86_64) && !defined(__ILP32__) void filter_line_x86_64 (guint8 * dst, guint8 * prev, guint8 * cur, guint8 * next, int w, int prefs, int mrefs, int parity, int mode); #endif void yadif_filter (GstYadif * yadif, int parity, int tff) { @@ -141,17 +141,17 @@ yadif_filter (GstYadif * yadif, int parity, int tff) for (y = 0; y < h; y++) { if ((y ^ parity) & 1) { guint8 *prev = prev_data + y * refs; guint8 *cur = cur_data + y * refs; guint8 *next = next_data + y * refs; guint8 *dst = dest_data + y * refs; int mode = ((y == 1) || (y + 2 == h)) ? 2 : yadif->mode; -#if HAVE_CPU_X86_64 +#if defined(HAVE_CPU_X86_64) && !defined(__ILP32__) if (0) { filter_line_c (dst, prev, cur, next, w, y + 1 < h ? refs : -refs, y ? -refs : refs, parity ^ tff, mode); } else { filter_line_x86_64 (dst, prev, cur, next, w, y + 1 < h ? refs : -refs, y ? -refs : refs, parity ^ tff, mode); } #else diff --git a/gst/yadif/yadif.c b/gst/yadif/yadif.c index 4bbf6c5..9aa7efe 100644 --- a/gst/yadif/yadif.c +++ b/gst/yadif/yadif.c @@ -17,17 +17,17 @@ * with Libav; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include "config.h" #include -#if HAVE_CPU_X86_64 +#if defined(HAVE_CPU_X86_64) && !defined(__ILP32__) typedef struct xmm_reg { guint64 a, b; } xmm_reg; typedef gint64 x86_reg; #define DECLARE_ALIGNED(n,t,v) t __attribute__ ((aligned (n))) v #define DECLARE_ASM_CONST(n,t,v) static const t __attribute__((used)) __attribute__ ((aligned (n))) v