aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/lcldec.c
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-05-31 10:38:17 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-05-31 10:38:17 +0000
commit974ce7854423e8eaf4afe97fbec6114bc8c33a55 (patch)
tree79ff8eb6dfa7c19c1f30900b00a25d28ebd00a79 /libavcodec/lcldec.c
parent6065dcea3727ef35d00553ffd01ae2cb04046c43 (diff)
downloadffmpeg-974ce7854423e8eaf4afe97fbec6114bc8c33a55.tar.gz
Mark srcptr as const in mszh_decomp
Originally committed as revision 19053 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/lcldec.c')
-rw-r--r--libavcodec/lcldec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/lcldec.c b/libavcodec/lcldec.c
index bc0d465aa7..b662ddc347 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;