Revision 18d761a1

View differences:

libavcodec/xan.c
519 519
        memcpy(s->current_frame.data[1], s->palettes + s->cur_palette * AVPALETTE_COUNT, AVPALETTE_SIZE);
520 520
    } else {
521 521
        AVPaletteControl *palette_control = avctx->palctrl;
522
    palette_control->palette_changed = 0;
523
    memcpy(s->current_frame.data[1], palette_control->palette,
524
           AVPALETTE_SIZE);
525
    s->current_frame.palette_has_changed = 1;
522
        palette_control->palette_changed = 0;
523
        memcpy(s->current_frame.data[1], palette_control->palette,
524
               AVPALETTE_SIZE);
525
        s->current_frame.palette_has_changed = 1;
526 526
    }
527 527

  
528 528
    s->buf = buf;

Also available in: Unified diff