Commit 4894578b authored by Michael Niedermayer's avatar Michael Niedermayer

const

Originally committed as revision 11775 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent ffb52962
...@@ -37,7 +37,7 @@ typedef struct TargaContext { ...@@ -37,7 +37,7 @@ typedef struct TargaContext {
int compression_type; int compression_type;
} TargaContext; } 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 i, x, y;
int depth = (bpp + 1) >> 3; int depth = (bpp + 1) >> 3;
...@@ -89,7 +89,7 @@ static void targa_decode_rle(AVCodecContext *avctx, TargaContext *s, uint8_t *sr ...@@ -89,7 +89,7 @@ static void targa_decode_rle(AVCodecContext *avctx, TargaContext *s, uint8_t *sr
static int decode_frame(AVCodecContext *avctx, static int decode_frame(AVCodecContext *avctx,
void *data, int *data_size, void *data, int *data_size,
uint8_t *buf, int buf_size) const uint8_t *buf, int buf_size)
{ {
TargaContext * const s = avctx->priv_data; TargaContext * const s = avctx->priv_data;
AVFrame *picture = data; AVFrame *picture = data;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment