On Thu, Jul 31, 2014 at 10:39:09PM +0100, Vittorio Giovara wrote:
> On Tue, Jul 29, 2014 at 5:07 PM, Diego Biurrun <[email protected]> wrote:
> > --- a/libavcodec/pngenc.c
> > +++ b/libavcodec/pngenc.c
> > @@ -213,7 +213,7 @@ static int png_write_row(PNGEncContext *s, const 
> > uint8_t *data, int size)
> >
> >      s->zstream.avail_in = size;
> > -    s->zstream.next_in  = (uint8_t *)data;
> > +    s->zstream.next_in  = data;
> >      while (s->zstream.avail_in > 0) {
> >          ret = deflate(&s->zstream, Z_NO_FLUSH);
> >          if (ret != Z_OK)
> 
> This introduces the following warning on (git HEAD)
> 
> CC    libavcodec/pngenc.o
> /Users/GiovaraV/src/libav/libavcodec/pngenc.c:216:25: warning: assigning to
>       'Bytef *' (aka 'unsigned char *') from 'const uint8_t *' (aka
>       'const unsigned char *') discards qualifiers
>       [-Wincompatible-pointer-types-discards-qualifiers]
>     s->zstream.next_in  = data;
>                         ^ ~~~~
> 1 warning generated.

I bet you a Guinness that this is your broken zlib header again.

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

Reply via email to