From 29aefa57b43b45bfabc356d2a162aeeeb4a6e3bb Mon Sep 17 00:00:00 2001 From: michael Date: Sat, 17 Feb 2007 11:04:13 +0000 Subject: [PATCH] another ridiculous palette bug which has nothing to do with the new palete support in sws git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22242 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/vf_scale.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libmpcodecs/vf_scale.c b/libmpcodecs/vf_scale.c index f49153d843..8d786e771c 100644 --- a/libmpcodecs/vf_scale.c +++ b/libmpcodecs/vf_scale.c @@ -257,6 +257,7 @@ static int config(struct vf_instance_s* vf, vf->priv->palette[4*i+0]=4*(i&3)*21; vf->priv->palette[4*i+1]=4*((i>>2)&7)*9; vf->priv->palette[4*i+2]=4*((i>>5)&7)*9; + vf->priv->palette[4*i+3]=0; } break; } case IMGFMT_BGR4: @@ -267,6 +268,7 @@ static int config(struct vf_instance_s* vf, vf->priv->palette[4*i+0]=4*(i&1)*63; vf->priv->palette[4*i+1]=4*((i>>1)&3)*21; vf->priv->palette[4*i+2]=4*((i>>3)&1)*63; + vf->priv->palette[4*i+3]=0; } break; } }