[FFmpeg-devel] [PATCH 09/15] tscc: Fix warning about discarded qualifier

jamal jamrial at gmail.com
Fri Jul 27 10:23:19 CEST 2012


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

diff --git a/libavcodec/tscc.c b/libavcodec/tscc.c
index fcfa85b..b33c99b 100644
--- a/libavcodec/tscc.c
+++ b/libavcodec/tscc.c
@@ -72,10 +72,10 @@ typedef struct TsccContext {
  */
 static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt)
 {
-    const uint8_t *buf = avpkt->data;
+    uint8_t *buf = avpkt->data;
     int buf_size = avpkt->size;
     CamtasiaContext * const c = avctx->priv_data;
-    const unsigned char *encoded = buf;
+    unsigned char *encoded = buf;
     int zret; // Zlib return code
     int ret, len = buf_size;
 
-- 
1.7.8.6



More information about the ffmpeg-devel mailing list