# HG changeset patch # User mru # Date 1183939727 0 # Node ID d6957da946898083870fd9ffa4d4406ed82ea293 # Parent d623b31718301f79dbe7d54d66f0dc5186b15eac use correct type for palette diff -r d623b3171830 -r d6957da94689 tiff.c --- a/tiff.c Sun Jul 08 23:15:12 2007 +0000 +++ b/tiff.c Mon Jul 09 00:08:47 2007 +0000 @@ -155,7 +155,7 @@ int tag, type, count, off, value = 0; uint8_t *src, *dst; int i, j, ssize, soff, stride; - int *pal; + uint32_t *pal; uint8_t *rp, *gp, *bp; tag = tget_short(&buf, s->le); @@ -245,7 +245,7 @@ } if(s->bpp == 8){ /* make default grayscale pal */ - pal = (int *) s->picture.data[1]; + pal = (uint32_t *) s->picture.data[1]; for(i = 0; i < 256; i++) pal[i] = i * 0x010101; } @@ -378,7 +378,7 @@ av_log(s->avctx, AV_LOG_ERROR, "Palette met but this is not palettized format\n"); return -1; } - pal = (int *) s->picture.data[1]; + pal = (uint32_t *) s->picture.data[1]; off = type_sizes[type]; rp = buf; gp = buf + count / 3 * off;