changeset 6303:d78e2ce9b088 libavcodec

const
author aurel
date Fri, 01 Feb 2008 23:24:35 +0000
parents 81be720492ac
children 73a8529568bd
files xan.c
diffstat 1 files changed, 3 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/xan.c	Fri Feb 01 16:24:33 2008 +0000
+++ b/xan.c	Fri Feb 01 23:24:35 2008 +0000
@@ -206,7 +206,7 @@
 }
 
 static inline void xan_wc3_output_pixel_run(XanContext *s,
-    unsigned char *pixel_buffer, int x, int y, int pixel_count)
+    const unsigned char *pixel_buffer, int x, int y, int pixel_count)
 {
     int stride;
     int line_inc;
@@ -284,8 +284,7 @@
 
     unsigned char *opcode_buffer = s->buffer1;
     int opcode_buffer_size = s->buffer1_size;
-    unsigned char *imagedata_buffer = s->buffer2;
-    int imagedata_buffer_size = s->buffer2_size;
+    const unsigned char *imagedata_buffer = s->buffer2;
 
     /* pointers to segments inside the compressed chunk */
     const unsigned char *huffman_segment;
@@ -301,8 +300,7 @@
     xan_huffman_decode(opcode_buffer, huffman_segment, opcode_buffer_size);
 
     if (imagedata_segment[0] == 2)
-        xan_unpack(imagedata_buffer, &imagedata_segment[1],
-            imagedata_buffer_size);
+        xan_unpack(s->buffer2, &imagedata_segment[1], s->buffer2_size);
     else
         imagedata_buffer = &imagedata_segment[1];