Commit c4f7050b authored by Michael Niedermayer's avatar Michael Niedermayer

swscale: support unscaled planar Nbit->8bit with non native endian source.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 09ff3cc7
......@@ -1904,7 +1904,11 @@ static int planarCopyWrapper(SwsContext *c, const uint8_t* src[], int srcStride[
uint16_t *dstPtr2 = (uint16_t*)dstPtr;
if (dst_depth == 8) {
DITHER_COPY(dstPtr, dstStride[plane], srcPtr2, srcStride[plane]/2, )
if(isBE(c->srcFormat) == HAVE_BIGENDIAN){
DITHER_COPY(dstPtr, dstStride[plane], srcPtr2, srcStride[plane]/2, )
} else {
DITHER_COPY(dstPtr, dstStride[plane], srcPtr2, srcStride[plane]/2, av_bswap16)
}
} else if (src_depth == 8) {
for (i = 0; i < height; i++) {
for (j = 0; j < length; j++)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment