aboutsummaryrefslogtreecommitdiffstats
path: root/libswscale/swscale.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-09-13 02:04:10 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-09-13 02:04:10 +0000
commit88bc5a64f6a5699a14f5a86d336afea13621b873 (patch)
tree8abef43fd94fb060f36edee8ba61c9438b3f3794 /libswscale/swscale.c
parent84c125351391b2d0d74f98fb18bd60f15a665c00 (diff)
downloadffmpeg-88bc5a64f6a5699a14f5a86d336afea13621b873.tar.gz
Ensure that additional filter coeffs that exist due to alignment
are 0 if bitexact mode is requested. Originally committed as revision 27595 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Diffstat (limited to 'libswscale/swscale.c')
-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;
}
}