mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-25 12:40:01 +00:00
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
This commit is contained in:
parent
84c1253513
commit
88bc5a64f6
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user