diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2009-05-31 10:38:17 +0000 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2009-05-31 10:38:17 +0000 |
commit | 974ce7854423e8eaf4afe97fbec6114bc8c33a55 (patch) | |
tree | 79ff8eb6dfa7c19c1f30900b00a25d28ebd00a79 /libavcodec | |
parent | 6065dcea3727ef35d00553ffd01ae2cb04046c43 (diff) | |
download | ffmpeg-streaming-974ce7854423e8eaf4afe97fbec6114bc8c33a55.zip ffmpeg-streaming-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')
-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; |