diff options
Diffstat (limited to 'libavcodec/lzw.c')
-rw-r--r-- | libavcodec/lzw.c | 6 |
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; |