[FFmpeg-cvslog] r27595 - trunk/libswscale/swscale.c

michael subversion
Sat Sep 13 04:04:11 CEST 2008


Author: michael
Date: Sat Sep 13 04:04:10 2008
New Revision: 27595

Log:
Ensure that additional filter coeffs that exist due to alignment
are 0 if bitexact mode is requested.


Modified:
   trunk/libswscale/swscale.c

Modified: trunk/libswscale/swscale.c
==============================================================================
--- trunk/libswscale/swscale.c	(original)
+++ trunk/libswscale/swscale.c	Sat Sep 13 04:04:10 2008
@@ -1244,6 +1244,8 @@ static inline int initFilter(int16_t **o
         {
             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;
         }
     }
 




More information about the ffmpeg-cvslog mailing list