[FFmpeg-cvslog] tscc: fix "assignment discards qualifiers from pointer target type" warning

Michael Niedermayer git at videolan.org
Mon Oct 8 03:18:00 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Oct  8 03:11:02 2012 +0200| [b9a77198280f61db55e439f9f50b70c1b5f683d0] | committer: Michael Niedermayer

tscc: fix "assignment discards qualifiers from pointer target type" warning

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b9a77198280f61db55e439f9f50b70c1b5f683d0
---

 libavcodec/tscc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/tscc.c b/libavcodec/tscc.c
index 954e372..e85fdb5 100644
--- a/libavcodec/tscc.c
+++ b/libavcodec/tscc.c
@@ -91,7 +91,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPac
         av_log(avctx, AV_LOG_ERROR, "Inflate reset error: %d\n", zret);
         return AVERROR(EINVAL);
     }
-    c->zstream.next_in = encoded;
+    c->zstream.next_in = (uint8_t*)encoded;
     c->zstream.avail_in = len;
     c->zstream.next_out = c->decomp_buf;
     c->zstream.avail_out = c->decomp_size;



More information about the ffmpeg-cvslog mailing list