[FFmpeg-cvslog] swscale: fix unscaled yuv422p16be -> yuv422p10le
Michael Niedermayer
git at videolan.org
Tue May 10 00:44:19 CEST 2011
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue May 10 00:15:03 2011 +0200| [09ff3cc77b0844d2c6cd4d36bc2770fc05f882f5] | committer: Michael Niedermayer
swscale: fix unscaled yuv422p16be -> yuv422p10le
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=09ff3cc77b0844d2c6cd4d36bc2770fc05f882f5
---
libswscale/swscale.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index 085670b..1e412b3 100644
--- a/libswscale/swscale.c
+++ b/libswscale/swscale.c
@@ -1928,8 +1928,11 @@ static int planarCopyWrapper(SwsContext *c, const uint8_t* src[], int srcStride[
srcPtr2 += srcStride[plane]/2;
}
} else {
- //FIXME non native endian
- DITHER_COPY(dstPtr2, dstStride[plane]/2, srcPtr2, srcStride[plane]/2, )
+ if(isBE(c->srcFormat) == HAVE_BIGENDIAN){
+ DITHER_COPY(dstPtr2, dstStride[plane]/2, srcPtr2, srcStride[plane]/2, )
+ }else{
+ DITHER_COPY(dstPtr2, dstStride[plane]/2, srcPtr2, srcStride[plane]/2, av_bswap16)
+ }
}
} else if(is16BPS(c->srcFormat) && !is16BPS(c->dstFormat)) {
//FIXME add dither
More information about the ffmpeg-cvslog
mailing list