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

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


Author: reimar
Date: Thu Mar 24 21:25:45 2011
New Revision: 33100

Log:
More const preservation.

Modified:
   trunk/libvo/fastmemcpy.h

Modified: trunk/libvo/fastmemcpy.h
==============================================================================
--- trunk/libvo/fastmemcpy.h	Thu Mar 24 21:21:27 2011	(r33099)
+++ trunk/libvo/fastmemcpy.h	Thu Mar 24 21:25:45 2011	(r33100)
@@ -40,7 +40,7 @@ static inline void * mem2agpcpy_pic(void
     if(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;
         }
@@ -52,7 +52,7 @@ static inline void * mem2agpcpy_pic(void
         for(i=0; i<height; i++)
         {
             mem2agpcpy(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