diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-07-03 02:46:54 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-07-11 03:51:10 +0200 |
commit | 08b57574c6a1bde51576f42546b7b9f8c03f9297 (patch) | |
tree | f6dda728b3a177bd4b15c488c25ced6c9eee1ab5 /libswscale | |
parent | ca78fa24b75906538156392a449efacedd234247 (diff) | |
download | ffmpeg-08b57574c6a1bde51576f42546b7b9f8c03f9297.tar.gz |
sws: fix non native endian 9-15 bit input with 16bit out
Diffstat (limited to 'libswscale')
-rw-r--r-- | libswscale/swscale.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libswscale/swscale.c b/libswscale/swscale.c index cbb172f9e8..15db8367de 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; |