# HG changeset patch # User ramiro # Date 1248756399 0 # Node ID 9ad97332be79f2cb82c992ef1d53a2f91d7c1830 # Parent e1c1e13cb646b08d07ccf421669212f0fab272e8 Remove useless code. flags can never be any other kind of scaling algorithm inside this if(). diff -r e1c1e13cb646 -r 9ad97332be79 libswscale/swscale.c --- 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;