[FFmpeg-cvslog] sws: fallback to mmx2 when yuv2yuvX_sse3() cannot be used.
Michael Niedermayer
git at videolan.org
Mon Oct 31 01:57:12 CET 2011
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Oct 31 01:46:06 2011 +0100| [e484b64ce37e7bc7556c6113ce6f10671e20f61f] | committer: Michael Niedermayer
sws: fallback to mmx2 when yuv2yuvX_sse3() cannot be used.
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e484b64ce37e7bc7556c6113ce6f10671e20f61f
---
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 6053310..c16be83 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"
More information about the ffmpeg-cvslog
mailing list