diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-10-31 01:46:06 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-10-31 01:53:37 +0100 |
commit | e484b64ce37e7bc7556c6113ce6f10671e20f61f (patch) | |
tree | a3c4437852a7bfb7833bc5ff4e13cb42b60e6b79 /libswscale/x86/swscale_mmx.c | |
parent | f44ad92c3fc87daa0e2e9f5499662050be8b2bf3 (diff) | |
download | ffmpeg-e484b64ce37e7bc7556c6113ce6f10671e20f61f.tar.gz |
sws: fallback to mmx2 when yuv2yuvX_sse3() cannot be used.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswscale/x86/swscale_mmx.c')
-rw-r--r-- | libswscale/x86/swscale_mmx.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libswscale/x86/swscale_mmx.c b/libswscale/x86/swscale_mmx.c index 6053310bb8..c16be83f13 100644 --- a/libswscale/x86/swscale_mmx.c +++ b/libswscale/x86/swscale_mmx.c @@ -180,6 +180,9 @@ static void yuv2yuvX_sse3(const int16_t *filter, int filterSize, const int16_t **src, uint8_t *dest, int dstW, const uint8_t *dither, int offset) { + if(((int)dest) & 15){ + return yuv2yuvX_MMX2(filter, filterSize, src, dest, dstW, dither, offset); + } if (offset) { __asm__ volatile("movq (%0), %%xmm3\n\t" "movdqa %%xmm3, %%xmm4\n\t" |