[FFmpeg-devel] [PATCH] fix some warnings in swscale.c
Michael Niedermayer
michaelni
Sun Oct 26 12:48:13 CET 2008
On Sat, Oct 25, 2008 at 10:26:45PM +0200, Vitor Sessak wrote:
> $Subj.
>
> -Vitor
> Index: libswscale/swscale.c
> ===================================================================
> --- libswscale/swscale.c (revision 27818)
> +++ libswscale/swscale.c (working copy)
> @@ -1741,7 +1741,7 @@
>
>
> for (i=0; i<srcSliceH; i++) {
> - conv(srcPtr, dstPtr, c->srcW, c->pal_rgb);
> + conv(srcPtr, dstPtr, c->srcW, (uint8_t *) c->pal_rgb);
> srcPtr+= srcStride[0];
> dstPtr+= dstStride[0];
> }
ok
> @@ -2717,27 +2717,34 @@
> if (usePal(c->srcFormat)){
> for (i=0; i<256; i++){
> int p, r, g, b,y,u,v;
> - if(c->srcFormat == PIX_FMT_PAL8){
> + switch(c->srcFormat) {
> + case PIX_FMT_PAL8:
this does not look like a warning fix
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
I am the wisest man alive, for I know one thing, and that is that I know
nothing. -- Socrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20081026/a0ba3306/attachment.pgp>
More information about the ffmpeg-devel
mailing list