Commit 08b57574 authored by Michael Niedermayer's avatar Michael Niedermayer

sws: fix non native endian 9-15 bit input with 16bit out

parent ca78fa24
......@@ -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;
......
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