[FFmpeg-devel] [PATCH 2/2] png: fix fix warning about discarding qualifiers [-Wincompatible-pointer-types]
Paul B Mahol
onemda at gmail.com
Sun Mar 25 12:55:49 CEST 2012
Signed-off-by: Paul B Mahol <onemda at gmail.com>
---
libavcodec/pngdec.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavcodec/pngdec.c b/libavcodec/pngdec.c
index dd1f56b..93786a0 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 */
--
1.7.7
More information about the ffmpeg-devel
mailing list