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 421b21ca8a
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -1184,7 +1184,7 @@ void ff_get_unscaled_swscale(SwsContext *c)
|
|||||||
c->swScale = ff_yuv2rgb_get_func_ptr(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) &&
|
(dstFormat == AV_PIX_FMT_YUV420P || dstFormat == AV_PIX_FMT_YUVA420P) &&
|
||||||
!(flags & SWS_BITEXACT)) {
|
!(flags & SWS_BITEXACT)) {
|
||||||
c->swScale = yvu9ToYv12Wrapper;
|
c->swScale = yvu9ToYv12Wrapper;
|
||||||
|
Reference in New Issue
Block a user