Browse Source

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>
tags/n2.0
Hendrik Leppkes Michael Niedermayer 12 years ago
parent
commit
7cdf574c22
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libswscale/utils.c

+ 1
- 1
libswscale/utils.c View File

@@ -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;


Loading…
Cancel
Save