From 3e173a14e99f350d03e1a420fa8f6d3a5e659c17 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Wed, 4 May 2011 21:57:08 +0200 Subject: [PATCH] swscale: fix src type Signed-off-by: Michael Niedermayer --- libswscale/swscale_template.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libswscale/swscale_template.c b/libswscale/swscale_template.c index 864bafc85c..cfe8e4c2b2 100644 --- a/libswscale/swscale_template.c +++ b/libswscale/swscale_template.c @@ -951,7 +951,7 @@ static inline void RENAME(yuv2yuv1)(SwsContext *c, const int16_t *lumSrc, const #if COMPILE_TEMPLATE_MMX if(!(c->flags & SWS_BITEXACT)) { long p= 4; - const uint8_t *src[4]= {alpSrc + dstW, lumSrc + dstW, chrSrc + chrDstW, chrSrc + VOFW + chrDstW}; + const int16_t *src[4]= {alpSrc + dstW, lumSrc + dstW, chrSrc + chrDstW, chrSrc + VOFW + chrDstW}; uint8_t *dst[4]= {aDest, dest, uDest, vDest}; x86_reg counter[4]= {dstW, dstW, chrDstW, chrDstW};