Revision 9f5bd895 libavcodec/xan.c

View differences:

libavcodec/xan.c
206 206
}
207 207

  
208 208
static inline void xan_wc3_output_pixel_run(XanContext *s,
209
    unsigned char *pixel_buffer, int x, int y, int pixel_count)
209
    const unsigned char *pixel_buffer, int x, int y, int pixel_count)
210 210
{
211 211
    int stride;
212 212
    int line_inc;
......
284 284

  
285 285
    unsigned char *opcode_buffer = s->buffer1;
286 286
    int opcode_buffer_size = s->buffer1_size;
287
    unsigned char *imagedata_buffer = s->buffer2;
288
    int imagedata_buffer_size = s->buffer2_size;
287
    const unsigned char *imagedata_buffer = s->buffer2;
289 288

  
290 289
    /* pointers to segments inside the compressed chunk */
291 290
    const unsigned char *huffman_segment;
......
301 300
    xan_huffman_decode(opcode_buffer, huffman_segment, opcode_buffer_size);
302 301

  
303 302
    if (imagedata_segment[0] == 2)
304
        xan_unpack(imagedata_buffer, &imagedata_segment[1],
305
            imagedata_buffer_size);
303
        xan_unpack(s->buffer2, &imagedata_segment[1], s->buffer2_size);
306 304
    else
307 305
        imagedata_buffer = &imagedata_segment[1];
308 306

  

Also available in: Unified diff