[FFmpeg-cvslog] r9550 - trunk/libavcodec/tiff.c
Michael Niedermayer
michaelni
Mon Jul 9 01:34:21 CEST 2007
Hi
On Mon, Jul 09, 2007 at 01:15:05AM +0200, mru wrote:
> Author: mru
> Date: Mon Jul 9 01:15:04 2007
> New Revision: 9550
>
> Log:
> kill warnings
[...]
> @@ -244,7 +245,7 @@ static int tiff_decode_tag(TiffContext *
> }
> 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 @@ static int tiff_decode_tag(TiffContext *
> 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];
this hides the warning but doesnt fix the wrong code, that is data[1] is
not int but uint32_t
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Concerning the gods, I have no means of knowing whether they exist or not
or of what sort they may be, because of the obscurity of the subject, and
the brevity of human life -- Protagoras
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-cvslog/attachments/20070709/f6398f28/attachment.pgp>
More information about the ffmpeg-cvslog
mailing list