From 88bc5a64f6a5699a14f5a86d336afea13621b873 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 13 Sep 2008 02:04:10 +0000 Subject: [PATCH] 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 --- libswscale/swscale.c | 2 ++ 1 file changed, 2 insertions(+) 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; } }