summaryrefslogtreecommitdiff
path: root/libswscale/swscale.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-09-10 02:28:38 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-09-10 02:28:38 +0000
commit2f60f6297cb7307a964f1c6f724e4057f10768b7 (patch)
treef4bbe0abf40972d83b862d8f68d624ffdabc3290 /libswscale/swscale.c
parent58f0ec5ff60dd17fab7d6fe9c6f2694480cb841f (diff)
downloadffmpeg-2f60f6297cb7307a964f1c6f724e4057f10768b7.tar.gz
Make SWS_FULL_CHR_H_INP work.
Originally committed as revision 27564 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Diffstat (limited to 'libswscale/swscale.c')
-rw-r--r--libswscale/swscale.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index 8a9390a3d1..72ba001d50 100644
--- a/libswscale/swscale.c
+++ b/libswscale/swscale.c
@@ -2216,7 +2216,7 @@ SwsContext *sws_getContext(int srcW, int srcH, int srcFormat, int dstW, int dstH
&& 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
- && srcFormat!=PIX_FMT_BGR24 && srcFormat!=PIX_FMT_RGB24)
+ && ((dstW>>c->chrDstHSubSample) <= (srcW>>1) || (flags&(SWS_FAST_BILINEAR|SWS_POINT))))
c->chrSrcHSubSample=1;
if (param){