On Tue, Jul 29, 2014 at 5:07 PM, Diego Biurrun <[email protected]> wrote:
> ---
>  libavcodec/pngenc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libavcodec/pngenc.c b/libavcodec/pngenc.c
> index a349ee8..3d11f37 100644
> --- 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)
>      int ret;
>
>      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.

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

Reply via email to