summaryrefslogtreecommitdiffstats
path: root/libswscale
diff options
context:
space:
mode:
authorramiro <ramiro@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-07-28 04:46:39 +0000
committerramiro <ramiro@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-07-28 04:46:39 +0000
commitdeb168fc3440cb7913c1e857cdb4c1063e333077 (patch)
tree8111f7fae4e88d6cd9fe8ac83400ad416ea65e91 /libswscale
parent9cd56d5e40ae30ce886c3ee2838aa05b0110821f (diff)
downloadmpv-deb168fc3440cb7913c1e857cdb4c1063e333077.tar.bz2
mpv-deb168fc3440cb7913c1e857cdb4c1063e333077.tar.xz
Remove useless code.
flags can never be any other kind of scaling algorithm inside this if(). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29449 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libswscale')
-rw-r--r--libswscale/swscale.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index 4d3b893b45..6a85a52f35 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;