[FFmpeg-cvslog] r19053 - trunk/libavcodec/lcldec.c

reimar subversion
Sun May 31 12:38:17 CEST 2009


Author: reimar
Date: Sun May 31 12:38:17 2009
New Revision: 19053

Log:
Mark srcptr as const in mszh_decomp

Modified:
   trunk/libavcodec/lcldec.c

Modified: trunk/libavcodec/lcldec.c
==============================================================================
--- trunk/libavcodec/lcldec.c	Sun May 31 12:37:05 2009	(r19052)
+++ trunk/libavcodec/lcldec.c	Sun May 31 12:38:17 2009	(r19053)
@@ -74,11 +74,11 @@ typedef struct LclDecContext {
 /**
  * \param srcptr compressed source buffer, must be padded with at least 4 extra bytes
  */
-static unsigned int mszh_decomp(unsigned char * srcptr, int srclen, unsigned char * destptr, unsigned int destsize)
+static unsigned int mszh_decomp(const unsigned char * srcptr, int srclen, unsigned char * destptr, unsigned int destsize)
 {
     unsigned char *destptr_bak = destptr;
     unsigned char *destptr_end = destptr + destsize;
-    unsigned char *srcptr_end = srcptr + srclen;
+    const unsigned char *srcptr_end = srcptr + srclen;
     unsigned char mask = 0;
     unsigned char maskbit = 0;
     unsigned int ofs, cnt;



More information about the ffmpeg-cvslog mailing list