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>
This commit is contained in:
parent
d6a33f5d20
commit
7cdf574c22
@ -535,7 +535,7 @@ static av_cold int initFilter(int16_t **outFilter, int32_t **filterPos,
|
|||||||
filterAlign = 1;
|
filterAlign = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (INLINE_MMX(cpu_flags)) {
|
if (HAVE_MMX && cpu_flags & AV_CPU_FLAG_MMX) {
|
||||||
// special case for unscaled vertical filtering
|
// special case for unscaled vertical filtering
|
||||||
if (minFilterSize == 1 && filterAlign == 2)
|
if (minFilterSize == 1 && filterAlign == 2)
|
||||||
filterAlign = 1;
|
filterAlign = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user