[FFmpeg-cvslog] sws: fix non native endian 9-15 bit input with 16bit out
Michael Niedermayer
git at videolan.org
Mon Jul 11 04:13:00 CEST 2011
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Jul 3 02:46:54 2011 +0200| [08b57574c6a1bde51576f42546b7b9f8c03f9297] | committer: Michael Niedermayer
sws: fix non native endian 9-15 bit input with 16bit out
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=08b57574c6a1bde51576f42546b7b9f8c03f9297
---
libswscale/swscale.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index cbb172f..15db836 100644
--- a/libswscale/swscale.c
+++ b/libswscale/swscale.c
@@ -2902,6 +2902,10 @@ static av_cold void sws_init_swScale_c(SwsContext *c)
}
}
} else {
+ if(c->hScale16 == hScale16NX_c && !isAnyRGB(c->srcFormat)){
+ c->chrToYV12 = bswap16UV_c;
+ c->lumToYV12 = bswap16Y_c;
+ }
c->hScale16 = NULL;
c->hScale = hScale16_c;
c->scale19To15Fw = scale19To15Fw_c;
More information about the ffmpeg-cvslog
mailing list