summaryrefslogtreecommitdiffstats
path: root/libswscale
diff options
context:
space:
mode:
authormichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-09-10 22:41:55 +0000
committermichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-09-10 22:41:55 +0000
commit53a3e8ee6978658247b8001b72d967cd5e97d816 (patch)
treed86f84209eea1f7d39a012070e41bb7e6ad62df8 /libswscale
parent60a3099c0db23d03b9f2501c2ef2cf35847b30a7 (diff)
downloadmpv-53a3e8ee6978658247b8001b72d967cd5e97d816.tar.bz2
mpv-53a3e8ee6978658247b8001b72d967cd5e97d816.tar.xz
Make the 2point linear interpolation coefficients correct even for the
nearly never occurring 0.0, 1.0. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27574 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libswscale')
-rw-r--r--libswscale/swscale_template.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libswscale/swscale_template.c b/libswscale/swscale_template.c
index 6048bfc90b..d11e130f1c 100644
--- a/libswscale/swscale_template.c
+++ b/libswscale/swscale_template.c
@@ -1204,8 +1204,8 @@ static inline void RENAME(yuv2packedX)(SwsContext *c, int16_t *lumFilter, int16_
static inline void RENAME(yuv2packed2)(SwsContext *c, uint16_t *buf0, uint16_t *buf1, uint16_t *uvbuf0, uint16_t *uvbuf1,
uint8_t *dest, int dstW, int yalpha, int uvalpha, int y)
{
- int yalpha1=yalpha^4095;
- int uvalpha1=uvalpha^4095;
+ int yalpha1=4095- yalpha;
+ int uvalpha1=4095-uvalpha;
int i;
#if 0 //isn't used