[FFmpeg-cvslog] r11782 - trunk/libavcodec/txd.c

michael subversion
Fri Feb 1 16:59:41 CET 2008


Author: michael
Date: Fri Feb  1 16:59:41 2008
New Revision: 11782

Log:
const


Modified:
   trunk/libavcodec/txd.c

Modified: trunk/libavcodec/txd.c
==============================================================================
--- trunk/libavcodec/txd.c	(original)
+++ trunk/libavcodec/txd.c	Fri Feb  1 16:59:41 2008
@@ -38,14 +38,16 @@ static int txd_init(AVCodecContext *avct
 }
 
 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);




More information about the ffmpeg-cvslog mailing list