diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2009-04-09 21:53:48 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2009-04-09 21:53:48 +0000 |
commit | cfe675269bf44c49590e9076b5d2cd2503804f98 (patch) | |
tree | b4e1612012a848dbc2a09de74d65868d002d5200 /libavcodec/x86 | |
parent | 2b12317a90fb45ea0f8db8d50c55238ab286c625 (diff) | |
download | ffmpeg-streaming-cfe675269bf44c49590e9076b5d2cd2503804f98.zip ffmpeg-streaming-cfe675269bf44c49590e9076b5d2cd2503804f98.tar.gz |
Do not use SSE2 SAD for snow as it requires more alignment than can be
easily provided.
Fixes issue315.
Originally committed as revision 18404 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/x86')
-rw-r--r-- | libavcodec/x86/motion_est_mmx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/x86/motion_est_mmx.c b/libavcodec/x86/motion_est_mmx.c index e61a1ba..4673ebc 100644 --- a/libavcodec/x86/motion_est_mmx.c +++ b/libavcodec/x86/motion_est_mmx.c @@ -455,7 +455,7 @@ void dsputil_init_pix_mmx(DSPContext* c, AVCodecContext *avctx) c->pix_abs[1][3] = sad8_xy2_mmx2; } } - if ((mm_flags & FF_MM_SSE2) && !(mm_flags & FF_MM_3DNOW)) { + if ((mm_flags & FF_MM_SSE2) && !(mm_flags & FF_MM_3DNOW) && avctx->codec_id != CODEC_ID_SNOW) { c->sad[0]= sad16_sse2; } } |