diff tscc.c @ 6286:07eeefc2825f libavcodec

const
author michael
date Fri, 01 Feb 2008 15:58:29 +0000
parents 2b72f9bc4f06
children 48759bfbd073
line wrap: on
line diff
--- a/tscc.c	Fri Feb 01 15:57:54 2008 +0000
+++ b/tscc.c	Fri Feb 01 15:58:29 2008 +0000
@@ -182,10 +182,10 @@
  * Decode a frame
  *
  */
-static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size)
+static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, const uint8_t *buf, int buf_size)
 {
     CamtasiaContext * const c = avctx->priv_data;
-    unsigned char *encoded = (unsigned char *)buf;
+    const unsigned char *encoded = buf;
     unsigned char *outptr;
 #ifdef CONFIG_ZLIB
     int zret; // Zlib return code