From 6706a2986c48e3f20f1274b24345e6555d8f0f48 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 21 Dec 2014 01:45:55 +0100 Subject: avfilter/vf_spp: Fix overflow in 8bit store slice Fixes regression with ffplay -f lavfi -i testsrc=640x480 -vf format=gray,boxblur=20:10,geq="'mod(lum(X,Y),16)*15'",boxblur=10,geq="'abs(mod(lum(X,Y),15)-7)*32'",spp=4:40 Signed-off-by: Michael Niedermayer --- libavfilter/vf_spp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavfilter/vf_spp.h') diff --git a/libavfilter/vf_spp.h b/libavfilter/vf_spp.h index 14e1ddb6eb..6b70a91770 100644 --- a/libavfilter/vf_spp.h +++ b/libavfilter/vf_spp.h @@ -45,7 +45,7 @@ typedef struct { int use_bframe_qp; int hsub, vsub; - void (*store_slice)(uint8_t *dst, const uint16_t *src, + void (*store_slice)(uint8_t *dst, const int16_t *src, int dst_stride, int src_stride, int width, int height, int log2_scale, const uint8_t dither[8][8]); -- cgit v1.2.3