diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-09-13 02:04:10 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-09-13 02:04:10 +0000 |
commit | 88bc5a64f6a5699a14f5a86d336afea13621b873 (patch) | |
tree | 8abef43fd94fb060f36edee8ba61c9438b3f3794 /libswscale/swscale.c | |
parent | 84c125351391b2d0d74f98fb18bd60f15a665c00 (diff) | |
download | ffmpeg-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.c | 2 |
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; } } |