From 30d2ac4bf9b995bd9ab00e3a7277f4207be676e8 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 12 Dec 2014 13:34:18 +0100 Subject: avfilter/vf_spp: change temporary to unsigned More consistent with uspp and allows for future 10bit support Found-by: ubitux Signed-off-by: Michael Niedermayer --- libavfilter/vf_spp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libavfilter/vf_spp.c') diff --git a/libavfilter/vf_spp.c b/libavfilter/vf_spp.c index 989e283ac6..8eb0c7e296 100644 --- a/libavfilter/vf_spp.c +++ b/libavfilter/vf_spp.c @@ -156,7 +156,7 @@ static void softthresh_c(int16_t dst[64], const int16_t src[64], } } -static void store_slice_c(uint8_t *dst, const int16_t *src, +static void store_slice_c(uint8_t *dst, const uint16_t *src, int dst_linesize, int src_linesize, int width, int height, int log2_scale, const uint8_t dither[8][8]) @@ -186,7 +186,7 @@ static void store_slice_c(uint8_t *dst, const int16_t *src, } } -static inline void add_block(int16_t *dst, int linesize, const int16_t block[64]) +static inline void add_block(uint16_t *dst, int linesize, const int16_t block[64]) { int y; -- cgit v1.2.3