From 9ed85b75e33ca14d7451fc2a4c01e09ed9adb1aa Mon Sep 17 00:00:00 2001
From: dsmudhar <ds.mudhar@gmail.com>
Date: Sat, 21 May 2016 20:25:23 +0530
Subject: [PATCH] fixed assignment discards qualifier warnings

---
 libavcodec/pngenc.c | 2 +-
 libavcodec/tscc.c   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/pngenc.c b/libavcodec/pngenc.c
index 00c830e..7f09d6f 100644
--- a/libavcodec/pngenc.c
+++ b/libavcodec/pngenc.c
@@ -271,7 +271,7 @@ static int png_write_row(AVCodecContext *avctx, const uint8_t *data, int size)
     int ret;
 
     s->zstream.avail_in = size;
-    s->zstream.next_in  = data;
+    s->zstream.next_in  = (Bytef *) data;
     while (s->zstream.avail_in > 0) {
         ret = deflate(&s->zstream, Z_NO_FLUSH);
         if (ret != Z_OK)
diff --git a/libavcodec/tscc.c b/libavcodec/tscc.c
index bd5fe03..4641545 100644
--- a/libavcodec/tscc.c
+++ b/libavcodec/tscc.c
@@ -78,7 +78,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
         av_log(avctx, AV_LOG_ERROR, "Inflate reset error: %d\n", ret);
         return AVERROR_UNKNOWN;
     }
-    c->zstream.next_in   = buf;
+    c->zstream.next_in   = (Bytef *) buf;
     c->zstream.avail_in  = buf_size;
     c->zstream.next_out = c->decomp_buf;
     c->zstream.avail_out = c->decomp_size;
-- 
2.7.4 (Apple Git-66)

