diff options
-rw-r--r-- | libavcodec/lcldec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/lcldec.c b/libavcodec/lcldec.c index bc0d465..b662ddc 100644 --- a/libavcodec/lcldec.c +++ b/libavcodec/lcldec.c @@ -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; |