mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-01-13 19:03:13 +00:00
ppc: Fix glz magic endianess
This is a modified version of a patch initially by Erlon R. Cruz <erlon.cruz@br.flextronics.com>
This commit is contained in:
parent
f55f73b702
commit
59c6c829e7
@ -18,6 +18,7 @@
|
|||||||
#include <config.h>
|
#include <config.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <glib.h>
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "glz_encoder.h"
|
#include "glz_encoder.h"
|
||||||
@ -261,7 +262,7 @@ int glz_encode(GlzEncoderContext *opaque_encoder,
|
|||||||
encoder->cur_image.id = dict_image->id;
|
encoder->cur_image.id = dict_image->id;
|
||||||
encoder->cur_image.first_win_seg = dict_image->first_seg;
|
encoder->cur_image.first_win_seg = dict_image->first_seg;
|
||||||
|
|
||||||
encode_32(encoder, LZ_MAGIC);
|
encode_32(encoder, GUINT32_TO_LE(LZ_MAGIC));
|
||||||
encode_32(encoder, LZ_VERSION);
|
encode_32(encoder, LZ_VERSION);
|
||||||
if (top_down) {
|
if (top_down) {
|
||||||
encode(encoder, (type & LZ_IMAGE_TYPE_MASK) | (1 << LZ_IMAGE_TYPE_LOG));
|
encode(encoder, (type & LZ_IMAGE_TYPE_MASK) | (1 << LZ_IMAGE_TYPE_LOG));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user