OSDN Git Service

png: fix warning about discarding qualifiers [-Wincompatible-pointer-types]
authorPaul B Mahol <onemda@gmail.com>
Sun, 25 Mar 2012 10:55:49 +0000 (10:55 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 25 Mar 2012 23:02:11 +0000 (01:02 +0200)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/pngdec.c

index dd1f56b..93786a0 100644 (file)
@@ -364,7 +364,7 @@ static int png_decode_idat(PNGDecContext *s, int length)
 {
     int ret;
     s->zstream.avail_in = FFMIN(length, bytestream2_get_bytes_left(&s->gb));
-    s->zstream.next_in = s->gb.buffer;
+    s->zstream.next_in = (unsigned char *)s->gb.buffer;
     bytestream2_skip(&s->gb, length);
 
     /* decode one line if possible */