summaryrefslogtreecommitdiff
path: root/libavcodec/tscc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-02-01 15:58:29 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-02-01 15:58:29 +0000
commit6fd4315ee2e2a0cf52014afca3b1f1e6ed6c45dd (patch)
tree6bb53275dbed81c970a413f680e0c9c072327dac /libavcodec/tscc.c
parentd177b6200f054f3d3a8aa4b7c9c3e87f111ada08 (diff)
const
Originally committed as revision 11780 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/tscc.c')
-rw-r--r--libavcodec/tscc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/tscc.c b/libavcodec/tscc.c
index 40013ae9a7..30bb19f976 100644
--- a/libavcodec/tscc.c
+++ b/libavcodec/tscc.c
@@ -182,10 +182,10 @@ static int decode_rle(CamtasiaContext *c, unsigned int srcsize)
* 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