]> git.sesse.net Git - ffmpeg/commitdiff
const
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 1 Feb 2008 15:54:04 +0000 (15:54 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 1 Feb 2008 15:54:04 +0000 (15:54 +0000)
Originally committed as revision 11775 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/targa.c

index e595dfa62b9e7839aaa0eda10de57088a81277b7..930915777240a5fc587e93afdf53203b45b0af9f 100644 (file)
@@ -37,7 +37,7 @@ typedef struct TargaContext {
     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 void targa_decode_rle(AVCodecContext *avctx, TargaContext *s, uint8_t *sr
 
 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;