changeset 22224:79967c519e43

another ridiculous palette bug which has nothing to do with the new palete support in sws
author michael
date Sat, 17 Feb 2007 11:04:13 +0000
parents 825d9e25d5a5
children 345d2866dfcf
files libmpcodecs/vf_scale.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf_scale.c	Sat Feb 17 09:05:19 2007 +0000
+++ b/libmpcodecs/vf_scale.c	Sat Feb 17 11:04:13 2007 +0000
@@ -257,6 +257,7 @@
 	    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 @@
 	    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; }
     }