[MPlayer-users] More on the screen reset, full information.

D Richard Felker III dalias at aerifal.cx
Thu Jul 24 20:27:01 CEST 2003


On Thu, Jul 24, 2003 at 12:24:58PM -0500, Hugo González Monteverde wrote:
> I was told I could change this reset color from magenta to black, 
> "patching mplayer to use black as the color key instead of magenta"
> 
> If you can provide a real solution (other than "paste all the videos 
> together") there will be a contribution of a couple hundred dollars to 
> the individual who solves this or to the mplayer team, at the solution 
> provider's choice.

This is a real solution! Here is the patch. Apply into vo_xvidix.c in
libvo dir and recompile mplayer. Should work fine for your purposes.

Rich

-------------- next part --------------
Index: vo_xvidix.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_xvidix.c,v
retrieving revision 1.59
diff -u -r1.59 vo_xvidix.c
--- vo_xvidix.c	20 Apr 2003 15:09:19 -0000	1.59
+++ vo_xvidix.c	24 Jul 2003 18:24:18 -0000
@@ -253,13 +253,13 @@
     {
 	case 32:
 	case 24:
-	    fgColor = 0x00ff00ffL;
+	    fgColor = 0;
 	    break;
 	case 16:
-	    fgColor = 0xf81fL;
+	    fgColor = 0;
 	    break;
 	case 15:
-	    fgColor = 0x7c1fL;
+	    fgColor = 0;
 	    break;
 	default:
 	    mp_msg(MSGT_VO, MSGL_ERR, "Sorry, this (%d) color depth is not supported\n",
@@ -345,9 +345,9 @@
 	vidix_grkey_get(&gr_key);
 	gr_key.key_op = KEYS_PUT;
 	gr_key.ckey.op = CKEY_TRUE;
-	gr_key.ckey.red = 255;
+	gr_key.ckey.red = 0;
 	gr_key.ckey.green = 0;
-	gr_key.ckey.blue = 255;
+	gr_key.ckey.blue = 0;
 	vidix_grkey_set(&gr_key);
     }
 


More information about the MPlayer-users mailing list