# HG changeset patch # User michael # Date 1201881244 0 # Node ID 56d2853cd7c3a10edbbe38009cb97cf467520b6f # Parent b79673718ed8635b094f3bf9933773e2e5f113f7 const diff -r b79673718ed8 -r 56d2853cd7c3 targa.c --- a/targa.c Fri Feb 01 15:53:25 2008 +0000 +++ b/targa.c Fri Feb 01 15:54:04 2008 +0000 @@ -37,7 +37,7 @@ int compression_type; } TargaContext; -static void targa_decode_rle(AVCodecContext *avctx, TargaContext *s, uint8_t *src, uint8_t *dst, int w, int h, int stride, int bpp) +static void targa_decode_rle(AVCodecContext *avctx, TargaContext *s, const uint8_t *src, uint8_t *dst, int w, int h, int stride, int bpp) { int i, x, y; int depth = (bpp + 1) >> 3; @@ -89,7 +89,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, - uint8_t *buf, int buf_size) + const uint8_t *buf, int buf_size) { TargaContext * const s = avctx->priv_data; AVFrame *picture = data;