changeset 5257:f2eaf5afe6ae libavcodec

kill warnings
author mru
date Sun, 08 Jul 2007 23:15:04 +0000
parents f540f39e1472
children 4372aeade5dc
files tiff.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/tiff.c	Sun Jul 08 23:15:02 2007 +0000
+++ b/tiff.c	Sun Jul 08 23:15:04 2007 +0000
@@ -155,7 +155,8 @@
     int tag, type, count, off, value = 0;
     uint8_t *src, *dst;
     int i, j, ssize, soff, stride;
-    int *pal, *rp, *gp, *bp;
+    int *pal;
+    uint8_t *rp, *gp, *bp;
 
     tag = tget_short(&buf, s->le);
     type = tget_short(&buf, s->le);
@@ -244,7 +245,7 @@
         }
         if(s->bpp == 8){
             /* make default grayscale pal */
-            pal = s->picture.data[1];
+            pal = (int *) s->picture.data[1];
             for(i = 0; i < 256; i++)
                 pal[i] = i * 0x010101;
         }
@@ -377,7 +378,7 @@
             av_log(s->avctx, AV_LOG_ERROR, "Palette met but this is not palettized format\n");
             return -1;
         }
-        pal = s->picture.data[1];
+        pal = (int *) s->picture.data[1];
         off = type_sizes[type];
         rp = buf;
         gp = buf + count / 3 * off;