[FFmpeg-cvslog] swscale/input: Fix alpha bswap for set readAlpPlanar
Michael Niedermayer
git at videolan.org
Thu Nov 10 01:35:47 EET 2016
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Wed Nov 9 23:37:29 2016 +0100| [a340cfef8259e6fdceb8b3560a3f5c6cc73423f7] | committer: Michael Niedermayer
swscale/input: Fix alpha bswap for set readAlpPlanar
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a340cfef8259e6fdceb8b3560a3f5c6cc73423f7
---
libswscale/input.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libswscale/input.c b/libswscale/input.c
index 14ab5ab..62480c2 100644
--- a/libswscale/input.c
+++ b/libswscale/input.c
@@ -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) {
More information about the ffmpeg-cvslog
mailing list