1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-31 04:02:06 +00:00

yuy2 in C color bugfix patch from Artur Zaprzala <artur.zaprzala@talex.com.pl>

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3432 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
michael 2001-12-10 13:14:28 +00:00
parent 12eda0344e
commit a1bb772c18

View File

@ -146,7 +146,10 @@ PROFILE_START();
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