swscale: use full chroma input for point scaler

Originally committed as revision 32360 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
oldabi
Ramiro Polla 15 years ago
parent 6677249889
commit f4203ff3d9
  1. 2
      libswscale/utils.c

@ -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_RGB8 && srcFormat!=PIX_FMT_BGR8
&& srcFormat!=PIX_FMT_RGB4 && srcFormat!=PIX_FMT_BGR4 && srcFormat!=PIX_FMT_RGB4 && srcFormat!=PIX_FMT_BGR4
&& srcFormat!=PIX_FMT_RGB4_BYTE && srcFormat!=PIX_FMT_BGR4_BYTE && 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; c->chrSrcHSubSample=1;
if (param) { if (param) {

Loading…
Cancel
Save