mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-10 00:59:38 +00:00
Mark srcptr as const in mszh_decomp
Originally committed as revision 19053 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
6065dcea37
commit
974ce78544
@ -74,11 +74,11 @@ typedef struct LclDecContext {
|
|||||||
/**
|
/**
|
||||||
* \param srcptr compressed source buffer, must be padded with at least 4 extra bytes
|
* \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_bak = destptr;
|
||||||
unsigned char *destptr_end = destptr + destsize;
|
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 mask = 0;
|
||||||
unsigned char maskbit = 0;
|
unsigned char maskbit = 0;
|
||||||
unsigned int ofs, cnt;
|
unsigned int ofs, cnt;
|
||||||
|
Loading…
Reference in New Issue
Block a user