Mercurial > mplayer.hg
changeset 3431:63ecec3bdf93
yuy2 in C color bugfix patch from Artur Zaprzala <artur.zaprzala@talex.com.pl>
author | michael |
---|---|
date | Mon, 10 Dec 2001 13:14:28 +0000 |
parents | d461d729321c |
children | 5cb7caab5536 |
files | libvo/osd_template.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/osd_template.c Mon Dec 10 12:07:03 2001 +0000 +++ b/libvo/osd_template.c Mon Dec 10 13:14:28 2001 +0000 @@ -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