This matches the zlib API and avoids compiler warnings about const qualifiers.
---
 libavcodec/lcldec.c | 2 +-
 libavcodec/tiff.c   | 6 +++---
 libavcodec/zmbv.c   | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/libavcodec/lcldec.c b/libavcodec/lcldec.c
index f2af815..cdb9ed0 100644
--- a/libavcodec/lcldec.c
+++ b/libavcodec/lcldec.c
@@ -124,7 +124,7 @@ static unsigned int mszh_decomp(const unsigned char * 
srcptr, int srclen, unsign
  * @param offset offset in decomp_buf
  * @param expected expected decompressed length
  */
-static int zlib_decomp(AVCodecContext *avctx, const uint8_t *src, int src_len, 
int offset, int expected)
+static int zlib_decomp(AVCodecContext *avctx, uint8_t *src, int src_len, int 
offset, int expected)
 {
     LclDecContext *c = avctx->priv_data;
     int zret = inflateReset(&c->zstream);
diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c
index 6c72dc8..437c4c7 100644
--- a/libavcodec/tiff.c
+++ b/libavcodec/tiff.c
@@ -83,7 +83,7 @@ static unsigned tget(GetByteContext *gb, int type, int le)
 }
 
 #if CONFIG_ZLIB
-static int tiff_uncompress(uint8_t *dst, unsigned long *len, const uint8_t 
*src,
+static int tiff_uncompress(uint8_t *dst, unsigned long *len, uint8_t *src,
                            int size)
 {
     z_stream zstream = { 0 };
@@ -105,7 +105,7 @@ static int tiff_uncompress(uint8_t *dst, unsigned long 
*len, const uint8_t *src,
 }
 
 static int tiff_unpack_zlib(TiffContext *s, uint8_t *dst, int stride,
-                            const uint8_t *src, int size,
+                            uint8_t *src, int size,
                             int width, int lines)
 {
     uint8_t *zbuf;
@@ -166,7 +166,7 @@ static int tiff_unpack_fax(TiffContext *s, uint8_t *dst, 
int stride,
 }
 
 static int tiff_unpack_strip(TiffContext *s, uint8_t *dst, int stride,
-                             const uint8_t *src, int size, int lines)
+                             uint8_t *src, int size, int lines)
 {
     PutByteContext pb;
     int c, line, pixels, code, ret;
diff --git a/libavcodec/zmbv.c b/libavcodec/zmbv.c
index d17f37a..d709b11 100644
--- a/libavcodec/zmbv.c
+++ b/libavcodec/zmbv.c
@@ -400,7 +400,7 @@ static int zmbv_decode_intra(ZmbvContext *c)
 static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, 
AVPacket *avpkt)
 {
     AVFrame *frame = data;
-    const uint8_t *buf = avpkt->data;
+    uint8_t *buf = avpkt->data;
     int buf_size = avpkt->size;
     ZmbvContext * const c = avctx->priv_data;
     int zret = Z_OK; // Zlib return code
-- 
1.8.3.2

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to