aboutsummaryrefslogtreecommitdiffstats
path: root/libswscale/ppc/swscale_altivec.c
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2012-03-05 12:26:42 -0800
committerRonald S. Bultje <rsbultje@gmail.com>2012-03-06 10:47:41 -0800
commit2254b559cbcfc0418135f09add37c0a5866b1981 (patch)
tree07783f2b1324c6fa17b8ea32c30d29c8fc017e06 /libswscale/ppc/swscale_altivec.c
parent018f39ef496c768f7cd580a96ae971e03c78205e (diff)
downloadffmpeg-2254b559cbcfc0418135f09add37c0a5866b1981.tar.gz
swscale: make filterPos 32bit.
Fixes overflows for large image sizes. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
Diffstat (limited to 'libswscale/ppc/swscale_altivec.c')
-rw-r--r--libswscale/ppc/swscale_altivec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libswscale/ppc/swscale_altivec.c b/libswscale/ppc/swscale_altivec.c
index 3041053096..5537707bd0 100644
--- a/libswscale/ppc/swscale_altivec.c
+++ b/libswscale/ppc/swscale_altivec.c
@@ -144,7 +144,7 @@ static void yuv2planeX_altivec(const int16_t *filter, int filterSize,
static void hScale_altivec_real(SwsContext *c, int16_t *dst, int dstW,
const uint8_t *src, const int16_t *filter,
- const int16_t *filterPos, int filterSize)
+ const int32_t *filterPos, int filterSize)
{
register int i;
DECLARE_ALIGNED(16, int, tempo)[4];