avcodec/dds: Fix palettes on big endian