[FFmpeg-cvslog] sws: add casts to silence pointer type mismatch warnings

Michael Niedermayer git at videolan.org
Fri May 10 20:43:02 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri May 10 20:35:49 2013 +0200| [b2cf655d6e3d8446fd2ce0197aede831e941f0e8] | committer: Michael Niedermayer

sws: add casts to silence pointer type mismatch warnings

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b2cf655d6e3d8446fd2ce0197aede831e941f0e8
---

 libswscale/swscale.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index 5cab133..7bef0c8 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;
     }
 



More information about the ffmpeg-cvslog mailing list