summaryrefslogtreecommitdiffstats
path: root/libswscale
diff options
context:
space:
mode:
authormichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-09-13 02:04:10 +0000
committermichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-09-13 02:04:10 +0000
commit07fd651300ec7888333d41446afdc6a2edafa569 (patch)
tree3afa58943fd8c93ea292c3ab1478f82fed2b411a /libswscale
parent57db6892cfbcdd1cd460cc5282563b81e8bb1c3c (diff)
downloadmpv-07fd651300ec7888333d41446afdc6a2edafa569.tar.bz2
mpv-07fd651300ec7888333d41446afdc6a2edafa569.tar.xz
Ensure that additional filter coeffs that exist due to alignment
are 0 if bitexact mode is requested. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27595 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libswscale')
-rw-r--r--libswscale/swscale.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index 6285f4f117..d9eadfed8f 100644
--- a/libswscale/swscale.c
+++ b/libswscale/swscale.c
@@ -1244,6 +1244,8 @@ static inline int initFilter(int16_t **outFilter, int16_t **filterPos, int *outF
{
if (j>=filter2Size) filter[i*filterSize + j]= 0.0;
else filter[i*filterSize + j]= filter2[i*filter2Size + j];
+ if((flags & SWS_BITEXACT) && j>=minFilterSize)
+ filter[i*filterSize + j]= 0.0;
}
}