libavcodec/tscc.c:85:24: warning: assignment discards ‘const’ qualifier from 
pointer target type
---
 libavcodec/tscc.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libavcodec/tscc.c b/libavcodec/tscc.c
index c26853e..fdc5cd6 100644
--- a/libavcodec/tscc.c
+++ b/libavcodec/tscc.c
@@ -64,10 +64,9 @@ typedef struct TsccContext {
 static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
                         AVPacket *avpkt)
 {
-    const uint8_t *buf = avpkt->data;
     int buf_size = avpkt->size;
     CamtasiaContext * const c = avctx->priv_data;
-    const unsigned char *encoded = buf;
+    unsigned char *encoded = avpkt->data;
     AVFrame *frame = data;
     int zret; // Zlib return code
     int ret, len = buf_size;
-- 
1.8.3.2

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

Reply via email to