swscale: use full chroma input for point scaler
authorRamiro Polla <ramiro.polla@gmail.com>
Sun, 26 Sep 2010 17:06:32 +0000 (17:06 +0000)
committerRamiro Polla <ramiro.polla@gmail.com>
Sun, 26 Sep 2010 17:06:32 +0000 (17:06 +0000)
Originally committed as revision 32360 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

libswscale/utils.c

index e9400f8..dfb4806 100644 (file)
@@ -831,7 +831,7 @@ SwsContext *sws_getContext(int srcW, int srcH, enum PixelFormat srcFormat,
       && srcFormat!=PIX_FMT_RGB8      && srcFormat!=PIX_FMT_BGR8
       && srcFormat!=PIX_FMT_RGB4      && srcFormat!=PIX_FMT_BGR4
       && srcFormat!=PIX_FMT_RGB4_BYTE && srcFormat!=PIX_FMT_BGR4_BYTE
-      && ((dstW>>c->chrDstHSubSample) <= (srcW>>1) || (flags&(SWS_FAST_BILINEAR|SWS_POINT))))
+      && ((dstW>>c->chrDstHSubSample) <= (srcW>>1) || (flags&SWS_FAST_BILINEAR)))
         c->chrSrcHSubSample=1;
 
     if (param) {