From 1c40bccc0949f24bde1cd51194367a4a9fd490c5 Mon Sep 17 00:00:00 2001 From: Michael Bradshaw Date: Sat, 6 Feb 2016 01:14:19 +0100 Subject: [PATCH] lavc/dirac_dwt: fix building without asm clang needs HAVE_MMX to be first in order to avoid an undefined reference error. --- libavcodec/dirac_dwt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/dirac_dwt.c b/libavcodec/dirac_dwt.c index 6cf32ae2b9..9d74e3bee4 100644 --- a/libavcodec/dirac_dwt.c +++ b/libavcodec/dirac_dwt.c @@ -54,7 +54,7 @@ int ff_spatial_idwt_init2(DWTContext *d, uint8_t *buffer, int width, int height, return AVERROR_INVALIDDATA; } - if (bit_depth == 8 && HAVE_MMX) + if (HAVE_MMX && bit_depth == 8) ff_spatial_idwt_init_mmx(d, type); return 0; }