You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
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.
This commit is contained in:
@@ -962,7 +962,7 @@ int sws_init_context(SwsContext *c, SwsFilter *srcFilter, SwsFilter *dstFilter)
|
|||||||
/* precalculate vertical scaler filter coefficients */
|
/* precalculate vertical scaler filter coefficients */
|
||||||
{
|
{
|
||||||
const int filterAlign=
|
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 :
|
(HAVE_ALTIVEC && cpu_flags & AV_CPU_FLAG_ALTIVEC) ? 8 :
|
||||||
1;
|
1;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user