diff options
author | wm4 <wm4@nowhere> | 2013-07-18 13:13:18 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-07-18 13:13:18 +0200 |
commit | 02528a293348060fe2a13000e547b3767439775d (patch) | |
tree | bbd81d6a9fe96dfd8e802b9a60886eba9e11950a | |
parent | 3d384bfdeee7d3bf58da43ef16b91c50ce988736 (diff) | |
download | mpv-02528a293348060fe2a13000e547b3767439775d.tar.bz2 mpv-02528a293348060fe2a13000e547b3767439775d.tar.xz |
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.
-rw-r--r-- | video/filter/vf_scale.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/video/filter/vf_scale.c b/video/filter/vf_scale.c index c3eb1cb840..20277ad554 100644 --- a/video/filter/vf_scale.c +++ b/video/filter/vf_scale.c @@ -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; |