提交 a340cfef 编写于 作者: M Michael Niedermayer

swscale/input: Fix alpha bswap for set readAlpPlanar

Signed-off-by: NMichael Niedermayer <michael@niedermayer.cc>
上级 d736b52a
......@@ -1490,7 +1490,7 @@ av_cold void ff_sws_init_input_funcs(SwsContext *c)
}
if (c->needAlpha) {
if (is16BPS(srcFormat) || isNBPS(srcFormat)) {
if (HAVE_BIGENDIAN == !isBE(srcFormat))
if (HAVE_BIGENDIAN == !isBE(srcFormat) && !c->readAlpPlanar)
c->alpToYV12 = bswap16Y_c;
}
switch (srcFormat) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册