summaryrefslogtreecommitdiff
path: root/libswscale/swscale.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-09-12 23:52:37 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-09-12 23:52:37 +0000
commit84c125351391b2d0d74f98fb18bd60f15a665c00 (patch)
treef6a7a9d0e12532da88075a2aa77a0d9be1039e01 /libswscale/swscale.c
parent881c429407c2e16c2eb8e86cd036f7652912cdc3 (diff)
yvu9toyv12Wrapper is not bitexact so disable it when the user wants
bitexactness to C. Originally committed as revision 27594 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 81cc945f1a..6285f4f117 100644
--- a/libswscale/swscale.c
+++ b/libswscale/swscale.c
@@ -2172,7 +2172,7 @@ SwsContext *sws_getContext(int srcW, int srcH, int srcFormat, int dstW, int dstH
}
#endif
- if (srcFormat==PIX_FMT_YUV410P && dstFormat==PIX_FMT_YUV420P)
+ if (srcFormat==PIX_FMT_YUV410P && dstFormat==PIX_FMT_YUV420P && !(flags & SWS_BITEXACT))
{
c->swScale= yvu9toyv12Wrapper;
}