[Mplayer-cvslog] CVS: main/libvo osd_template.c,1.15,1.16

Michael Niedermayer michael at mplayer.dev.hu
Mon Dec 10 14:14:36 CET 2001


Update of /cvsroot/mplayer/main/libvo
In directory mplayer:/var/tmp.root/cvs-serv17484/libvo

Modified Files:
	osd_template.c 
Log Message:
yuy2 in C color bugfix patch from Artur Zaprzala <artur.zaprzala at talex.com.pl>


Index: osd_template.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/osd_template.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- osd_template.c	26 Nov 2001 21:12:15 -0000	1.15
+++ osd_template.c	10 Dec 2001 13:14:28 -0000	1.16
@@ -146,7 +146,10 @@
             if(srca[2*x+0]) dstbase[4*x+0]=src[2*x+0];
             if(srca[2*x+1]) dstbase[4*x+2]=src[2*x+1];
 #else
-            if(srca[x]) dstbase[2*x]=((dstbase[2*x]*srca[x])>>8)+src[x];
+            if(srca[x]) {
+               dstbase[2*x]=((dstbase[2*x]*srca[x])>>8)+src[x];
+               dstbase[2*x+1]=((((signed)dstbase[2*x+1]-128)*srca[x])>>8)+128;
+           }
 #endif
         }
 #endif




More information about the MPlayer-cvslog mailing list