Commit 17f1e9ab authored by michael's avatar michael

Ensure that additional filter coeffs that exist due to alignment

are 0 if bitexact mode is requested.


git-svn-id: file:///var/local/repositories/mplayer/trunk/libswscale@27595 b3059339-0415-0410-9bf9-f77b7e298cf2
parent 9a08fa1e
...@@ -1244,6 +1244,8 @@ static inline int initFilter(int16_t **outFilter, int16_t **filterPos, int *outF ...@@ -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; if (j>=filter2Size) filter[i*filterSize + j]= 0.0;
else filter[i*filterSize + j]= filter2[i*filter2Size + j]; else filter[i*filterSize + j]= filter2[i*filter2Size + j];
if((flags & SWS_BITEXACT) && j>=minFilterSize)
filter[i*filterSize + j]= 0.0;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment