Commit 974ce785 authored by Reimar Döffinger's avatar Reimar Döffinger

Mark srcptr as const in mszh_decomp

Originally committed as revision 19053 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 6065dcea
......@@ -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