Commit 48b7918a authored by reimar's avatar reimar

Mark srcptr as const in mszh_decomp


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19053 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent b0c2c3df
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment