[FFmpeg-cvslog] r30340 - trunk/libswscale/swscale.c

stefano subversion
Sun Jan 17 01:21:50 CET 2010


Author: stefano
Date: Sun Jan 17 01:21:50 2010
New Revision: 30340

Log:
Add a const qualifier in a cast, fix the gcc warning:
swscale.c: In function ?planarCopy?:
swscale.c:2256: warning: cast discards qualifiers from pointer target type

Modified:
   trunk/libswscale/swscale.c

Modified: trunk/libswscale/swscale.c
==============================================================================
--- trunk/libswscale/swscale.c	Sun Jan 17 00:22:43 2010	(r30339)
+++ trunk/libswscale/swscale.c	Sun Jan 17 01:21:50 2010	(r30340)
@@ -2253,7 +2253,7 @@ static int planarCopy(SwsContext *c, con
 
                 for (i=0; i<height; i++) {
                     for (j=0; j<length; j++)
-                        ((uint16_t*)dstPtr)[j] = bswap_16(((uint16_t*)srcPtr)[j]);
+                        ((uint16_t*)dstPtr)[j] = bswap_16(((const uint16_t*)srcPtr)[j]);
                     srcPtr+= srcStride[plane];
                     dstPtr+= dstStride[plane];
                 }



More information about the ffmpeg-cvslog mailing list