changeset 27563:39c8d234b98e

Ensure that additional filter coeffs that exist due to alignment are 0 if bitexact mode is requested.
author michael
date Sat, 13 Sep 2008 02:04:10 +0000
parents dec58ca745b2
children f8ee6c6221b4
files libswscale/swscale.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libswscale/swscale.c	Fri Sep 12 23:52:37 2008 +0000
+++ b/libswscale/swscale.c	Sat Sep 13 02:04:10 2008 +0000
@@ -1244,6 +1244,8 @@
         {
             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;
         }
     }