[MPlayer-cvslog] r33099 - trunk/libvo/fastmemcpy.h

reimar subversion at mplayerhq.hu
Thu Mar 24 21:21:28 CET 2011


Author: reimar
Date: Thu Mar 24 21:21:27 2011
New Revision: 33099

Log:
Do not pointlessly cast away a const.

Modified:
   trunk/libvo/fastmemcpy.h

Modified: trunk/libvo/fastmemcpy.h
==============================================================================
--- trunk/libvo/fastmemcpy.h	Wed Mar 23 23:08:34 2011	(r33098)
+++ trunk/libvo/fastmemcpy.h	Thu Mar 24 21:21:27 2011	(r33099)
@@ -77,7 +77,7 @@ static inline void * memcpy_pic2(void * 
     if(!limit2width && dstStride == srcStride)
     {
         if (srcStride < 0) {
-                src = (uint8_t*)src + (height-1)*srcStride;
+                src = (const uint8_t*)src + (height-1)*srcStride;
                 dst = (uint8_t*)dst + (height-1)*dstStride;
                 srcStride = -srcStride;
         }
@@ -89,7 +89,7 @@ static inline void * memcpy_pic2(void * 
         for(i=0; i<height; i++)
         {
             fast_memcpy(dst, src, bytesPerLine);
-            src = (uint8_t*)src + srcStride;
+            src = (const uint8_t*)src + srcStride;
             dst = (uint8_t*)dst + dstStride;
         }
     }


More information about the MPlayer-cvslog mailing list