aboutsummaryrefslogtreecommitdiffstats
path: root/libswscale
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-04-30 06:21:58 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-06-25 16:35:24 +0200
commit0e18480fc3b3e27a1bed8535479f7550db2dbd5d (patch)
tree456599740258bab547f300393e630cd8347342c5 /libswscale
parent99d4d3532fac0c3b6289ea207bdb3238b70540a0 (diff)
downloadffmpeg-0e18480fc3b3e27a1bed8535479f7550db2dbd5d.tar.gz
sws: dont use the optimized 410->420 unscaled conversion when height%4
Fixes Ticket3594 Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 421b21ca8a02a346ba03cea3bb2ecc33f791fc30) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswscale')
-rw-r--r--libswscale/swscale_unscaled.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libswscale/swscale_unscaled.c b/libswscale/swscale_unscaled.c
index 3b07800d02..b3c84c6451 100644
--- a/libswscale/swscale_unscaled.c
+++ b/libswscale/swscale_unscaled.c
@@ -1184,7 +1184,7 @@ void ff_get_unscaled_swscale(SwsContext *c)
c->swScale = ff_yuv2rgb_get_func_ptr(c);
}
- if (srcFormat == AV_PIX_FMT_YUV410P &&
+ if (srcFormat == AV_PIX_FMT_YUV410P && !(dstH & 3) &&
(dstFormat == AV_PIX_FMT_YUV420P || dstFormat == AV_PIX_FMT_YUVA420P) &&
!(flags & SWS_BITEXACT)) {
c->swScale = yvu9ToYv12Wrapper;