summaryrefslogtreecommitdiffstats
path: root/libavcodec/dirac_dwt.c
diff options
context:
space:
mode:
authorMichael Bradshaw <mjbshaw@google.com>2016-02-06 01:14:19 +0100
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2016-02-06 01:14:19 +0100
commit1c40bccc0949f24bde1cd51194367a4a9fd490c5 (patch)
tree0ac2b07dbecb3195937c8890f294ec35333632ae /libavcodec/dirac_dwt.c
parentaa751573fef5a313fd485a74746ab664bd537581 (diff)
downloadffmpeg-streaming-1c40bccc0949f24bde1cd51194367a4a9fd490c5.zip
ffmpeg-streaming-1c40bccc0949f24bde1cd51194367a4a9fd490c5.tar.gz
lavc/dirac_dwt: fix building without asm
clang needs HAVE_MMX to be first in order to avoid an undefined reference error.
Diffstat (limited to 'libavcodec/dirac_dwt.c')
-rw-r--r--libavcodec/dirac_dwt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dirac_dwt.c b/libavcodec/dirac_dwt.c
index 6cf32ae..9d74e3b 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;
}
OpenPOWER on IntegriCloud