summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--video/filter/vf_scale.c8
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;