[SCM] libav/experimental: Remove useless code. flags can never be any other kind of scaling algorithm inside this if().

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:49:27 UTC 2013


The following commit has been merged in the experimental branch:
commit 571d9587cfec0ebfef535e3cb942c2f2a35dc182
Author: Ramiro Polla <ramiro.polla at gmail.com>
Date:   Tue Jul 28 04:46:39 2009 +0000

    Remove useless code.
    flags can never be any other kind of scaling algorithm inside this if().
    
    Originally committed as revision 29449 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index 4d3b893..6a85a52 100644
--- a/libswscale/swscale.c
+++ b/libswscale/swscale.c
@@ -1450,9 +1450,7 @@ static inline int initFilter(int16_t **outFilter, int16_t **filterPos, int *outF
     {
         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;

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list