changeset 9769:6efef56e20b3 libavcodec

Mark srcptr as const in mszh_decomp
author reimar
date Sun, 31 May 2009 10:38:17 +0000
parents c0af0d67bb8f
children e883c3dab3ec
files lcldec.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lcldec.c	Sun May 31 10:37:05 2009 +0000
+++ b/lcldec.c	Sun May 31 10:38:17 2009 +0000
@@ -74,11 +74,11 @@
 /**
  * \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;