[FFmpeg-cvslog] r29449 - trunk/libswscale/swscale.c

ramiro subversion
Tue Jul 28 06:46:40 CEST 2009


Author: ramiro
Date: Tue Jul 28 06:46:39 2009
New Revision: 29449

Log:
Remove useless code.
flags can never be any other kind of scaling algorithm inside this if().

Modified:
   trunk/libswscale/swscale.c

Modified: trunk/libswscale/swscale.c
==============================================================================
--- trunk/libswscale/swscale.c	Mon Jul 27 21:39:23 2009	(r29448)
+++ trunk/libswscale/swscale.c	Tue Jul 28 06:46:39 2009	(r29449)
@@ -1450,9 +1450,7 @@ static inline int initFilter(int16_t **o
     {
         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;



More information about the ffmpeg-cvslog mailing list