From b2cf655d6e3d8446fd2ce0197aede831e941f0e8 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 10 May 2013 20:35:49 +0200 Subject: [PATCH] sws: add casts to silence pointer type mismatch warnings Signed-off-by: Michael Niedermayer --- libswscale/swscale.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libswscale/swscale.c b/libswscale/swscale.c index 5cab133378..7bef0c80fb 100644 --- a/libswscale/swscale.c +++ b/libswscale/swscale.c @@ -992,7 +992,7 @@ int attribute_align_arg sws_scale(struct SwsContext *c, base = srcStride[0] < 0 ? rgb0_tmp - srcStride[0] * (srcSliceH-1) : rgb0_tmp; - xyz12Torgb48(c, base, src2[0], srcStride[0]/2, srcSliceH); + xyz12Torgb48(c, (uint16_t*)base, (const uint16_t*)src2[0], srcStride[0]/2, srcSliceH); src2[0] = base; }