aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2012-03-25 10:55:49 +0000
committerMichael Niedermayer <michaelni@gmx.at>2012-03-26 01:02:11 +0200
commit25b67dc7657697ac2d26debc17949dff146e9e88 (patch)
tree6630af172131fa762fed78ba2804d56c66195af6
parentaa9c2e41b6467136836e1b4d19ee39c7fe0b838e (diff)
downloadffmpeg-25b67dc7657697ac2d26debc17949dff146e9e88.tar.gz
png: fix warning about discarding qualifiers [-Wincompatible-pointer-types]
Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/pngdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/pngdec.c b/libavcodec/pngdec.c
index dd1f56b06c..93786a0b7f 100644
--- a/libavcodec/pngdec.c
+++ b/libavcodec/pngdec.c
@@ -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 */