summaryrefslogtreecommitdiff
path: root/libavcodec/lzw.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-02-01 03:26:31 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-02-01 03:26:31 +0000
commit7993df65275a9a9bf0a04c37d1aa31901d3ebb0c (patch)
tree12ac05b322190d0bbbf660aef2e280128d15020a /libavcodec/lzw.c
parentff794171c97ae123cac041726e9c8bdc36c7e6c0 (diff)
consts
I have underestimated this a little, and these are just some ... Originally committed as revision 11708 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/lzw.c')
-rw-r--r--libavcodec/lzw.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/lzw.c b/libavcodec/lzw.c
index 6bc0b9a48a..833c9d0ab3 100644
--- a/libavcodec/lzw.c
+++ b/libavcodec/lzw.c
@@ -42,7 +42,7 @@ static const uint16_t mask[17] =
};
struct LZWState {
- uint8_t *pbuf, *ebuf;
+ const uint8_t *pbuf, *ebuf;
int bbits;
unsigned int bbuf;
@@ -91,7 +91,7 @@ static int lzw_get_code(struct LZWState * s)
return c & s->curmask;
}
-uint8_t* ff_lzw_cur_ptr(LZWState *p)
+const uint8_t* ff_lzw_cur_ptr(LZWState *p)
{
return ((struct LZWState*)p)->pbuf;
}
@@ -127,7 +127,7 @@ void ff_lzw_decode_close(LZWState **p)
* @param buf_size input data size
* @param mode decoder working mode - either GIF or TIFF
*/
-int ff_lzw_decode_init(LZWState *p, int csize, uint8_t *buf, int buf_size, int mode)
+int ff_lzw_decode_init(LZWState *p, int csize, const uint8_t *buf, int buf_size, int mode)
{
struct LZWState *s = (struct LZWState *)p;