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:
wm4 2013-07-18 13:13:18 +02:00
parent 3d384bfdee
commit 02528a2933
1 changed files with 0 additions and 8 deletions

View File

@ -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;