changeset 27543:1e0b48b2b253

Correct normalization constant for the vertical filter. I am not completely sure why this was at such an incorrect value, but I could not find any problems when it was set correctly.
author michael
date Wed, 10 Sep 2008 23:23:47 +0000
parents 090bf8535df8
children e69bd178104a
files libswscale/swscale.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libswscale/swscale.c	Wed Sep 10 22:41:55 2008 +0000
+++ b/libswscale/swscale.c	Wed Sep 10 23:23:47 2008 +0000
@@ -2434,11 +2434,11 @@
             1;
 
         initFilter(&c->vLumFilter, &c->vLumFilterPos, &c->vLumFilterSize, c->lumYInc,
-                   srcH      ,        dstH, filterAlign, (1<<12)-4,
+                   srcH      ,        dstH, filterAlign, (1<<12),
                    (flags&SWS_BICUBLIN) ? (flags|SWS_BICUBIC)  : flags,
                    srcFilter->lumV, dstFilter->lumV, c->param);
         initFilter(&c->vChrFilter, &c->vChrFilterPos, &c->vChrFilterSize, c->chrYInc,
-                   c->chrSrcH, c->chrDstH, filterAlign, (1<<12)-4,
+                   c->chrSrcH, c->chrDstH, filterAlign, (1<<12),
                    (flags&SWS_BICUBLIN) ? (flags|SWS_BILINEAR) : flags,
                    srcFilter->chrV, dstFilter->chrV, c->param);