mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-29 15:11:09 +08:00
vf_scale: don't byte-swap palette on big endian architectures
ffmpeg's and the internal palette format used to have different endianess, but that is not the case anymore. This code was forgotten when that change was made.
This commit is contained in:
@@ -341,14 +341,6 @@ static void scale(struct SwsContext *sws1, struct SwsContext *sws2,
|
||||
int interlaced)
|
||||
{
|
||||
const uint8_t *src2[MP_MAX_PLANES] = {src[0], src[1], src[2], src[3]};
|
||||
#if BYTE_ORDER == BIG_ENDIAN
|
||||
uint32_t pal2[256];
|
||||
if (src[1] && !src[2]) {
|
||||
for (int i = 0; i < 256; i++)
|
||||
pal2[i] = bswap_32(((uint32_t *)src[1])[i]);
|
||||
src2[1] = pal2;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (interlaced) {
|
||||
int i;
|
||||
|
||||
Reference in New Issue
Block a user