Commit 0755372a authored by ramiro's avatar ramiro

Remove useless code.

flags can never be any other kind of scaling algorithm inside this if().

git-svn-id: file:///var/local/repositories/mplayer/trunk/libswscale@29449 b3059339-0415-0410-9bf9-f77b7e298cf2
parent 1d36fa93
...@@ -1450,9 +1450,7 @@ static inline int initFilter(int16_t **outFilter, int16_t **filterPos, int *outF ...@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment