aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-02-01 15:59:41 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-02-01 15:59:41 +0000
commit521c38f1ef855d6789ee6afda2f49500bb89fa79 (patch)
tree81f5c9c2c77e3f2611530a7cb0557dae6a9e089a /libavcodec
parent67d9ca0c00f0e00b928c29c7c78c760aa91eb844 (diff)
downloadffmpeg-521c38f1ef855d6789ee6afda2f49500bb89fa79.tar.gz
const
Originally committed as revision 11782 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/txd.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/libavcodec/txd.c b/libavcodec/txd.c
index fd0d7ae93a..13e1938bb5 100644
--- a/libavcodec/txd.c
+++ b/libavcodec/txd.c
@@ -38,14 +38,16 @@ static int txd_init(AVCodecContext *avctx) {
}
static int txd_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
- uint8_t *buf, int buf_size) {
+ const uint8_t *buf, int buf_size) {
TXDContext * const s = avctx->priv_data;
AVFrame *picture = data;
AVFrame * const p = &s->picture;
unsigned int version, w, h, d3d_format, depth, stride, mipmap_count, flags;
unsigned int y, v;
- uint8_t *ptr, *cur = buf;
- uint32_t *palette = (uint32_t *)(cur + 88), *pal;
+ uint8_t *ptr;
+ const uint8_t *cur = buf;
+ const uint32_t *palette = (const uint32_t *)(cur + 88);
+ uint32_t *pal;
version = AV_RL32(cur);
d3d_format = AV_RL32(cur+76);