diff options
author | reynaldo <reynaldo@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-06-30 03:18:12 +0000 |
---|---|---|
committer | reynaldo <reynaldo@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-06-30 03:18:12 +0000 |
commit | a97779a3de189a9b42ff37fca9a7282f5250ea04 (patch) | |
tree | 0a8ee6005d78f7d7b73cce2099f3ec5007e3e3df /libmpcodecs | |
parent | e0a094555d383c7084d19c25e8272f7fc1f01d73 (diff) | |
download | mpv-a97779a3de189a9b42ff37fca9a7282f5250ea04.tar.bz2 mpv-a97779a3de189a9b42ff37fca9a7282f5250ea04.tar.xz |
correct handling of sgi compressed images on amd64, patch by Paul-Francois Fontigny - pff AT filmik-be
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18860 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r-- | libmpcodecs/vd_sgi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libmpcodecs/vd_sgi.c b/libmpcodecs/vd_sgi.c index 1cc9ebb40c..84d45ac494 100644 --- a/libmpcodecs/vd_sgi.c +++ b/libmpcodecs/vd_sgi.c @@ -155,7 +155,7 @@ static void decode_rle_sgi(SGIInfo *info, unsigned char *data, mp_image_t *mpi) { unsigned char *rle_data, *dest_row; - unsigned long *starttab; + uint32_t *starttab; int y, z, xsize, ysize, zsize, chan_offset; long start_offset; @@ -164,7 +164,7 @@ decode_rle_sgi(SGIInfo *info, unsigned char *data, mp_image_t *mpi) zsize = info->zsize; /* rle offset table is right after the header */ - starttab = (long*)(data + SGI_HEADER_LEN); + starttab = (uint32_t*)(data + SGI_HEADER_LEN); for (z = 0; z < zsize; z++) { @@ -177,7 +177,7 @@ decode_rle_sgi(SGIInfo *info, unsigned char *data, mp_image_t *mpi) dest_row = mpi->planes[0] + mpi->stride[0] * (ysize - 1 - y); /* set start of next run (offsets are from start of header) */ - start_offset = be2me_32(*(unsigned long*) &starttab[y + z * ysize]); + start_offset = be2me_32(*(uint32_t*) &starttab[y + z * ysize]); rle_data = &data[start_offset]; |