diff targa.c @ 6281:56d2853cd7c3 libavcodec

const
author michael
date Fri, 01 Feb 2008 15:54:04 +0000
parents 2b72f9bc4f06
children 48759bfbd073
line wrap: on
line diff
--- 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;