[FFmpeg-devel] [PATCH v1] avcodec/tscc: fix the warning: assigning to 'Bytef *' (aka 'unsigned char *') from 'const uint8_t *

lance.lmwang at gmail.com lance.lmwang at gmail.com
Wed Sep 4 17:38:35 EEST 2019


From: Limin Wang <lance.lmwang at gmail.com>

Signed-off-by: Limin Wang <lance.lmwang at gmail.com>
---
 libavcodec/tscc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/tscc.c b/libavcodec/tscc.c
index 6d03081..f3b959c 100644
--- a/libavcodec/tscc.c
+++ b/libavcodec/tscc.c
@@ -64,7 +64,7 @@ typedef struct TsccContext {
 static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
                         AVPacket *avpkt)
 {
-    const uint8_t *buf = avpkt->data;
+    uint8_t *buf = avpkt->data;
     int buf_size = avpkt->size;
     CamtasiaContext * const c = avctx->priv_data;
     AVFrame *frame = c->frame;
-- 
2.6.4



More information about the ffmpeg-devel mailing list