[MPlayer-cvslog] r22242 - trunk/libmpcodecs/vf_scale.c

michael subversion at mplayerhq.hu
Sat Feb 17 12:04:13 CET 2007


Author: michael
Date: Sat Feb 17 12:04:13 2007
New Revision: 22242

Modified:
   trunk/libmpcodecs/vf_scale.c

Log:
another ridiculous palette bug which has nothing to do with the new palete support in sws


Modified: trunk/libmpcodecs/vf_scale.c
==============================================================================
--- trunk/libmpcodecs/vf_scale.c	(original)
+++ trunk/libmpcodecs/vf_scale.c	Sat Feb 17 12:04:13 2007
@@ -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; }
     }



More information about the MPlayer-cvslog mailing list