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
This commit is contained in:
parent
341f394f0d
commit
571d9587cf
@ -1450,9 +1450,7 @@ static inline int initFilter(int16_t **outFilter, int16_t **filterPos, int *outF
|
|||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
int xDstInSrc;
|
int xDstInSrc;
|
||||||
if (flags&SWS_BICUBIC) filterSize= 4;
|
filterSize= 2;
|
||||||
else if (flags&SWS_X ) filterSize= 4;
|
|
||||||
else filterSize= 2; // SWS_BILINEAR / SWS_AREA
|
|
||||||
filter= av_malloc(dstW*sizeof(*filter)*filterSize);
|
filter= av_malloc(dstW*sizeof(*filter)*filterSize);
|
||||||
|
|
||||||
xDstInSrc= xInc/2 - 0x8000;
|
xDstInSrc= xInc/2 - 0x8000;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user