diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2011-11-04 23:19:29 +0400 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2011-11-05 18:06:38 +0400 |
commit | 1deb08fcb678364f7cb2559d1e3497d1e5568910 (patch) | |
tree | c309d52122980199b3ba47078c41e4b184ef5294 /libswscale | |
parent | 43317fd52cb967b4401e0401998bbf287489a2be (diff) |
swscale: align vertical filtersize by 2 on x86.
The vertical scaler handles 2 rows at a time and thus requires
alignment by 2, or else it'll read invalid memory and result in
corrupt output.
Diffstat (limited to 'libswscale')
-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 64ac77d7b7..862b2736f6 100644 --- a/libswscale/utils.c +++ b/libswscale/utils.c @@ -962,7 +962,7 @@ int sws_init_context(SwsContext *c, SwsFilter *srcFilter, SwsFilter *dstFilter) /* precalculate vertical scaler filter coefficients */ { const int filterAlign= - (HAVE_MMX && cpu_flags & AV_CPU_FLAG_MMX) && (flags & SWS_ACCURATE_RND) ? 2 : + (HAVE_MMX && cpu_flags & AV_CPU_FLAG_MMX) ? 2 : (HAVE_ALTIVEC && cpu_flags & AV_CPU_FLAG_ALTIVEC) ? 8 : 1; |