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

ramiro subversion
Thu Sep 16 03:09:59 CEST 2010


Author: ramiro
Date: Thu Sep 16 03:09:59 2010
New Revision: 32258

Log:
swscale: remove useless temporary variable

Modified:
   trunk/libswscale/swscale.c

Modified: trunk/libswscale/swscale.c
==============================================================================
--- trunk/libswscale/swscale.c	Thu Sep 16 03:07:55 2010	(r32257)
+++ trunk/libswscale/swscale.c	Thu Sep 16 03:09:59 2010	(r32258)
@@ -1317,12 +1317,10 @@ static void copyPlane(const uint8_t *src
         memcpy(dst, src, srcSliceH * dstStride);
     } else {
         int i;
-        const uint8_t *srcPtr = src;
-        uint8_t *dstPtr= dst;
         for (i=0; i<srcSliceH; i++) {
-            memcpy(dstPtr, srcPtr, width);
-            srcPtr += srcStride;
-            dstPtr += dstStride;
+            memcpy(dst, src, width);
+            src += srcStride;
+            dst += dstStride;
         }
     }
 }



More information about the ffmpeg-cvslog mailing list