changeset 29407:9ad97332be79

Remove useless code. flags can never be any other kind of scaling algorithm inside this if().
author ramiro
date Tue, 28 Jul 2009 04:46:39 +0000
parents e1c1e13cb646
children 45759bfb13d6
files libswscale/swscale.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libswscale/swscale.c	Mon Jul 27 19:39:23 2009 +0000
+++ b/libswscale/swscale.c	Tue Jul 28 04:46:39 2009 +0000
@@ -1450,9 +1450,7 @@
     {
         int i;
         int xDstInSrc;
-        if      (flags&SWS_BICUBIC) filterSize= 4;
-        else if (flags&SWS_X      ) filterSize= 4;
-        else                        filterSize= 2; // SWS_BILINEAR / SWS_AREA
+        filterSize= 2;
         filter= av_malloc(dstW*sizeof(*filter)*filterSize);
 
         xDstInSrc= xInc/2 - 0x8000;