diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2013-06-21 18:10:38 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-06-21 21:01:11 +0200 |
commit | 7cdf574c22b85e53ed42e64313700193f00e378f (patch) | |
tree | 7f66edfa85e74c11a04712c986e9b271f6fd3d28 /libswscale/utils.c | |
parent | d6a33f5d20b6ef2eae2cbb959b001cb125a564b7 (diff) | |
download | ffmpeg-7cdf574c22b85e53ed42e64313700193f00e378f.tar.gz |
swscale: fix filter alignment reduction without inline asm
Fixes scaling in MSVC/ICL, where inline asm is not present, but the
YASM scaling code is.
Reviewed-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswscale/utils.c')
-rw-r--r-- | libswscale/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libswscale/utils.c b/libswscale/utils.c index 6324bc8f96..fb0a7adb04 100644 --- a/libswscale/utils.c +++ b/libswscale/utils.c @@ -535,7 +535,7 @@ static av_cold int initFilter(int16_t **outFilter, int32_t **filterPos, filterAlign = 1; } - if (INLINE_MMX(cpu_flags)) { + if (HAVE_MMX && cpu_flags & AV_CPU_FLAG_MMX) { // special case for unscaled vertical filtering if (minFilterSize == 1 && filterAlign == 2) filterAlign = 1; |