diff options
author | Ramiro Polla <ramiro.polla@gmail.com> | 2009-07-28 04:46:39 +0000 |
---|---|---|
committer | Ramiro Polla <ramiro.polla@gmail.com> | 2009-07-28 04:46:39 +0000 |
commit | 571d9587cfec0ebfef535e3cb942c2f2a35dc182 (patch) | |
tree | 90035d855366dd62cf14256506e6b6d857bea508 /libswscale/swscale.c | |
parent | 341f394f0dc3e0469022000a363ca49bea8807e6 (diff) | |
download | ffmpeg-571d9587cfec0ebfef535e3cb942c2f2a35dc182.tar.gz |
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
Diffstat (limited to 'libswscale/swscale.c')
-rw-r--r-- | libswscale/swscale.c | 4 |
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; |